// 常驻线程(子线程开启)
- (void)foreverThead
{
NSLog(@"%@", [NSThread currentThread]);
// 创建runloop
NSRunLoop *runloop = [NSRunLoop currentRunLoop];
// 添加source
[runloop addPort:[NSPort port] forMode:NSDefaultRunLoopMode];
// 启动runloop
[runloop run];
}