1.線程創(chuàng)建方式
NSThread*thread = [[NSThreadalloc]initWithTarget:selfselector:@selector(nil)object:nil];
[thread start];
[NSThreaddetachNewThreadSelector:@selector(nil)toTarget:selfwithObject:nil];
[self performSelectorInBackground:@selector(nil)withObject:nil];