摘要: ios有三种主要方法:1、NSThread。2、NSOperation。3、GCD。1、NSThread:调用方法如下:如果需要函数参数的话,可以通过Object传递。1.1:[NSThreaddetachNewThreadSelector:@selector(threadInMainMethod:)toTarget:selfwithObject:nil];1.2:NSThread*myThread=[[NSThreadalloc]initWithTarget:selfselector:@selector(threadInMainMethod:)object:nil];[myThreadsta 阅读全文
posted @ 2013-09-10 09:25 子非あ鱼 阅读(204) 评论(0) 推荐(0) 编辑