摘要:
封装CoreManager类 @implementation CoreDataManager { //上下文 NSManagedObjectContext *_ctx; } //单例 +(instancetype)sharedManager { static CoreDataManager *man 阅读全文
摘要:
一.系统自带 [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. self.view.backgroundColor = [UIColor whiteColor]; 阅读全文
摘要:
程序进入后台,延迟指定时间退出 正常程序退出后,会在几秒内停止工作;要想申请更长的时间,需要用到beginBackgroundTaskWithExpirationHandlerendBackgroundTask一定要成对出现 { NSTimer *_timer; int aa; __block UI 阅读全文