2016年4月20日
摘要: 1、程序的五种状态 Not Running:未运行。 Inactive:前台非活动状态。处于前台,但是不能接受事件处理。 Active:前台活动状态。处于前台,能接受事件处理。 Background:后台状态。进入后台,如果又可执行代码,会执行代码,代码执行完毕,程序进行挂起。 Suspended: 阅读全文
posted @ 2016-04-20 15:08 X了个code 阅读(21233) 评论(0) 推荐(0) 编辑
摘要: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(appHasGoneInForeground:) name:UIApplicationWillEnterForegroundNotification o 阅读全文
posted @ 2016-04-20 11:41 X了个code 阅读(314) 评论(0) 推荐(0) 编辑