1. 程序开始加载执行
- (void)applicationDidBecomeActive:(UIApplication *)application
2. 程序进入前台执行(程序第一次加载时不会被执行)
- (void)applicationWillEnterForeground:(UIApplication *)application
3. 程序进入后台执行
- (void)applicationDidEnterBackground:(UIApplication *)application
4. 程序退出执行
- (void)applicationWillTerminate:(UIApplication *)application
5. 程序从活动到非活动状态
- (void)applicationWillResignActive:(UIApplication *)application