解决方法如下
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];
   
});

相关文章:

  • 2021-12-15
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-25
  • 2021-12-06
  • 2022-12-23
  • 2021-09-13
  • 2021-11-22
  • 2021-07-12
相关资源
相似解决方案