摘要:
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 阅读全文