ios 回调函数作用
2015-06-23 12:55
417 查看
//应用程序启动后调用的第一个方法 不懂的程序可以做不同的启动 //launchOption参数的作业:应用在特定条件下的不同启动参数 比如:挑战的支付宝支付 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. return YES; } //被打断 - (void)applicationWillResignActive:(UIApplication *)application { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. } //前台到后台 - (void)applicationDidEnterBackground:(UIApplication *)application { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } //后台到前台 - (void)applicationWillEnterForeground:(UIApplication *)application { // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. } //被打断重新回来 - (void)applicationDidBecomeActive:(UIApplication *)application { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } //终止时调用 通常不用 - (void)applicationWillTerminate:(UIApplication *)application { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. }
回调函数
相关文章推荐
- IOS消息通信中的Notification&KVO
- iOS 8 Xcode6 设置Launch Image 启动图片
- iOS 终端命令行
- iOS 轮播图
- iOS开发- 文件共享(利用iTunes导入文件, 并且显示已有文件)
- iOS之NSXMLParser对XML解析
- iOS开发SDWebImage使用详解
- iOS支持arm64后,按钮图片出不来的坑
- KVC 与 KVO的概念理解
- iOS 开发学习35 本地化
- iOS view的frame和bounds之区别(位置和大小)
- Xamarin iOS教程之页面控件
- [ios]iOS8 定位
- Xamarin iOS教程之页面控件
- iOS第三方支付集成
- iOS越狱后必装软件
- iOS多线程
- iOS(使用pch文件导入头文件方法)
- 构建iOS交叉编译环境
- iOS开发笔记6:图片轮播及其无限循环效果