Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经为我的 iPhone 应用程序编写了一个密码系统,目前它在 -applicationDidFinishLaunching 方法中运行良好,但我想知道我必须重写哪些其他方法来解决诸如睡眠和多任务处理之类的问题?
对于应用程序委托,可能
- (void)applicationDidBecomeActive:(UIApplication *)application;
和
- (void)applicationWillEnterForeground:(UIApplication *)application;
您可能还想使用:
- (void)applicationSignificantTimeChange:(UIApplication *)application;
不过,我认为这涵盖了它。