摘要: 1.CoreData的专业术语 NSManagerModel 被管理的数据模型 NSManngerObject 被管理的数据对象 NSPersistentStoreCoordinator 持久化存储助理 NSManagerContext 被管理的数据的上下文 NSEntityDspcipition ... 阅读全文
posted @ 2015-11-16 19:30 墨VS雪 阅读(294) 评论(0) 推荐(0) 编辑
摘要: NSTimer类是我们经常要用到的一个类库,它可以实现一个简单的定时器功能。NSTimer的初始化:1.添加一个每0.1s循环一次的NSTimer[NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(go... 阅读全文
posted @ 2015-11-16 17:22 墨VS雪 阅读(259) 评论(0) 推荐(0) 编辑
摘要: NSThread相对于gcd和nsoperation来说偏向于底层,有时候会用到它的一些方法,比如长时间等待一个线程,或者频繁使用的时候 [NSThread sleepForTimeInterval:2];//让线程睡两秒 [NSThread sleepUntilDate:[NSDate d... 阅读全文
posted @ 2015-11-16 13:11 墨VS雪 阅读(218) 评论(0) 推荐(0) 编辑
摘要: NSOperation是苹果在gcd的基础上封装的一层,更好的处理和控制大量的并发操作,但是速度比gcd慢。NSOperationqueue会自动处理线程的优先级,在复杂的线程中,NSOperation更加方便。使用方式:1.系统提供的子类,2.自定义子类1.系统提供的子类 NSOperationQ... 阅读全文
posted @ 2015-11-16 12:31 墨VS雪 阅读(176) 评论(0) 推荐(0) 编辑