AppDelegate中的几个方法触发时机

1.//应用加载完成时触发

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

2.//当应用程序将要取消活跃状态时触发(挂入后台)

- (void)applicationWillResignActive:(UIApplication *)application

3.//当前应用程序已经进入后台(后台挂起)

- (void)applicationDidEnterBackground:(UIApplication *)application

4.//应用即将进入前台(即将活跃)

- (void)applicationWillEnterForeground:(UIApplication *)application

5.//当前应用程序活跃(正在主界面运行)

- (void)applicationDidBecomeActive:(UIApplication *)application

6.//程序关闭的事后触发

- (void)applicationWillTerminate:(UIApplication *)application





你可能感兴趣的:(知识学习)