【发布时间】:2023-03-16 23:40:01
【问题描述】:
我最近在使用 iOS 7 和解锁时遇到了一些问题。每次用户解锁他/她的设备时,我都试图让UIAlertView 显示。
我已经得到了同样的东西来处理重生。我正在使用带有徽标模板的 iOSOpenDev。有谁知道如何在使用 iOS 7 的SBLockscreenViewController 或其他方式解锁后立即获得Alert?
【问题讨论】:
标签: ios objective-c jailbreak theos
我最近在使用 iOS 7 和解锁时遇到了一些问题。每次用户解锁他/她的设备时,我都试图让UIAlertView 显示。
我已经得到了同样的东西来处理重生。我正在使用带有徽标模板的 iOSOpenDev。有谁知道如何在使用 iOS 7 的SBLockscreenViewController 或其他方式解锁后立即获得Alert?
【问题讨论】:
标签: ios objective-c jailbreak theos
从 SBLockScreenViewController 查看这些方法:
-(void) prepareForUIUnlock;
-(void) finishUIUnlockFromSource:(int)source;
两者都应该可以正常工作。
【讨论】:
每当您的应用程序处于活动状态时,都会调用以下操作:
- (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.
}
【讨论】: