// 程序第一次加载完毕
- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
// 程序已经进入后台
// 保存数据- (void)applicationDidEnterBackground:(UIApplication*)application// 程序将要进入前台
// 恢复数据- (void)applicationWillEnterForeground:(UIApplication*)application// 程序将要失去焦点 - 不能交互
- (void)applicationWillResignActive:(UIApplication*)application// 程序已经获取焦点 - 可以交互
- (void)applicationDidBecomeActive:(UIApplication*)application// 程序挂了
// 注意:1.用户主动关闭 2.系统因为内存不够关闭了程序- (void)applicationWillTerminate:(UIApplication*)application// 程序接收到内存警告
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application