码迷,mamicode.com
首页 > 移动开发 > 详细

iOS -- UIApplication

时间:2016-03-07 16:23:20      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:

UIApplicationDelegate协议
// app接收到内存警告时调用
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application;
// app进入后台时调用(比如按了home键)
- (void)applicationDidEnterBackground:(UIApplication *)application;
// app启动完毕时调用
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;

Application系统事件

程序加载完毕 application: didFinishLaunchingWithOptions:
程序获取焦点 applicationDidBecomeActive:
程序进入后台 applicationDidEnterBackground:
程序失去焦点 applicationWillResignActive:
程序从后台回到前台 applicationWillEnterForeground:
内存警告 applicationDidReceiveMemoryWarning:
程序即将退出 applicationWillTerminate:

iOS -- UIApplication

标签:

原文地址:http://www.cnblogs.com/lianfu/p/5250753.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!