iOS - application启动过程

iOS - application启动过程_第1张图片
1c950a7b02087bf4200394cdf1d3572c11dfcf23.jpg

监听系统事件

程序加载完毕:

  • 程序获取焦点
-(void)applicationDidBecomeActive:(UIApplication *)application
  • 程序进入后台
-(void)applicationDidEnterBackground:(UIApplication *)application 
  • 程序失去焦点
-(void)applicationWillResignActive:(UIApplication *)application
  • 程序从后台回到前台
-(void)applicationWillEnterForeground:(UIApplication *)application
  • 程序内存警告,可能要终止程序
-(void)applicationDidReceiveMemoryWarning:(UIApplication *)application
  • 程序即将退出
-(void)applicationWillTerminate:(UIApplication *)application

你可能感兴趣的:(iOS - application启动过程)