常驻线程
(void)viewDidLoad
{
NSThread * thread = [[NSThread alloc]initWithTarget:self selector:@selector(run) object:nil];
}(void)run {
[[NSRunLoop currentRunLoop] addPort:[NSPort port] forMode:NSDefaultRunLoopMode];
[[NSRunLoop currentRunLoop] run]
}