我最近在使用iOS 7和解锁时遇到了一些麻烦。每次用户解锁他/她的设备时,我都会尝试显示UIAlertView
。
我和respringing一起做了同样的事情。我正在使用iOSOpenDev和徽标模板。有没有人知道如何在使用iOS 7的Alert
或其他内容解锁后立即获得SBLockscreenViewController
?
答案 0 :(得分:1)
从SBLockScreenViewController中查看这些方法:
-(void) prepareForUIUnlock;
-(void) finishUIUnlockFromSource:(int)source;
两者都应该可以正常工作。
答案 1 :(得分:0)
每当您的应用程序变为活动状态时,将调用以下操作:
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}