返回顶部

收藏

ios 应用挂起到后台和从后台恢复

更多
- (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.
    NSLog(@"applicationDidEnterBackground 挂起");
}

- (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.
    NSLog(@"applicationWillEnterForeground 恢复");
}
//该片段来自于http://outofmemory.cn

标签:objective-c,手机开发

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2014-03-09 12:19:09设备信息类扩展方法 by 文丐
  2. 2014-05-05 10:53:44让视图慢慢消失的效果 by loking
  3. 2014-03-09 12:30:04UIViewController之间的切换 by 刘瑜
  4. 2014-05-06 15:35:36设置视图的圆角 by royacee
  5. 2014-05-26 20:31:21按照原比例来对视图进行缩放 by Sycro
  6. 2014-07-10 10:09:14判断是否是iPhone5 by 孙国强
  7. 2014-09-08 12:41:37打开设备闪关灯 by zetaliang
  8. 2014-09-21 12:39:43获取屏幕的高宽 by 王笃亭
  9. 2014-08-21 21:07:19iOS5和iOS6横竖屏同时支持 by panzaitang
  10. 2014-10-25 10:28:48禁止某几个文件用ARC模式编译 by lihuibng
  11. 2014-03-09 13:55:34IOS从背景图中取色 by 凤歌

发表评论