AppDelegate生命周期回调顺序

1. 应用初次启动:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

- (void)applicationDidBecomeActive:(UIApplication *)application


2. 连续点击两次Home按钮

- (void)applicationWillResignActive:(UIApplication *)application


3. 在任务栏点击SpringBoard或者按下Home按钮

- (void)applicationDidEnterBackground:(UIApplication *)application


4. 在任务栏中回到app

- (void)applicationDidBecomeActive:(UIApplication *)application


5. 单次点击Home按钮

- (void)applicationWillResignActive:(UIApplication *)application

- (void)applicationDidEnterBackground:(UIApplication *)application


6. 在SpringBoard中重新启动app

- (void)applicationWillEnterForeground:(UIApplication *)application

- (void)applicationDidBecomeActive:(UIApplication *)application


7. 从顶部向下滑动打开通知中心

- (void)applicationWillResignActive:(UIApplication *)application


8. 移除通知中心

- (void)applicationDidBecomeActive:(UIApplication *)application


9. 从底部向上滑动打开控制中心

- (void)applicationWillResignActive:(UIApplication *)application


10. 移除控制中心

- (void)applicationDidBecomeActive:(UIApplication *)application


11. 来电显示

有待调查。

你可能感兴趣的:(ios,Objective-C)