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