performSelector 和 NSTimer没有执行的解决方法

解决方法如下
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ 

       
NSTimer* t = [NSTimer scheduledTimerWithTimeInterval:1 target:self  selector:@selector(Reconnect:) userInfo:nil repeats:NO];    

       
[[NSRunLoop currentRunLoop] addTimer:t forMode:NSDefaultRunLoopMode];

       
[[NSRunLoop currentRunLoop] run];
   
});

你可能感兴趣的:(selector)