NSThread
2016-12-26 本文已影响0人
GreatQiuWei
1.线程创建方式
NSThread*thread = [[NSThreadalloc]initWithTarget:selfselector:@selector(nil)object:nil];
[thread start];
[NSThreaddetachNewThreadSelector:@selector(nil)toTarget:selfwithObject:nil];
[self performSelectorInBackground:@selector(nil)withObject:nil];