performSelectorOnMainThread和performSelectorInBackground详解
NSObject类的performSelectorOnMainThread和performSelectorInBackground可以实现简单的多线程编程技术 1、- (void)performSelectorInBackground:(SEL)aSelector withObject:(id)arg 创建一个线程在子线程执行,aSelector代表了新创建的线程,arg是传入的参数
原创
2016-12-20 12:03:32 ·
784 阅读 ·
0 评论