timer,runloop,thread,task小总结
对这几个也算不上有很深的理解,只是平时用到些许timer,thread。想起有次去baidu笔试遇到runloop和timer等的区别,当时就不会。两三月过去了,如今终于稍微整理了下。有不对的地方盼指正。(版权所有哦)· NSThread:常见的线程每个进程里都有多个线程,我们一般如下实用thread:[NSThread
detachNewThreadSelector:@selector(myThreadMainMethod:) toTarget:self
withObject:nil];如果
原创
2010-12-30 12:48:00 ·
779 阅读 ·
3 评论