【问题标题】:Displaying an UIAlertView When A User Unlocks iPhone当用户解锁 iPhone 时显示 UIAlertView
【发布时间】:2023-03-16 23:40:01
【问题描述】:

我最近在使用 iOS 7 和解锁时遇到了一些问题。每次用户解锁他/她的设备时,我都试图让UIAlertView 显示。

我已经得到了同样的东西来处理重生。我正在使用带有徽标模板的 iOSOpenDev。有谁知道如何在使用 iOS 7 的SBLockscreenViewController 或其他方式解锁后立即获得Alert

【问题讨论】:

标签: ios objective-c jailbreak theos


【解决方案1】:

从 SBLockScreenViewController 查看这些方法:

-(void) prepareForUIUnlock;
-(void) finishUIUnlockFromSource:(int)source;

两者都应该可以正常工作。

【讨论】:

  • 非常感谢!你只是为我节省了更多时间去寻找正确的方法..
  • @taysamjiggly,你看我的评论了吗?您的问题已经得到解答。
  • @creker 我看到了您的评论并尝试了它,但它遗漏了(源)部分,我的调整出现了错误。我想通了,谢谢你的评论!
【解决方案2】:

每当您的应用程序处于活动状态时,都会调用以下操作:

- (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.
}

【讨论】:

  • 他说的是越狱调整,而不是应用程序。
猜你喜欢
  • 1970-01-01
  • 2015-08-03
  • 2015-04-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-01-03
  • 1970-01-01
相关资源
最近更新 更多