Object-C 定时器 线程阻塞

   20s 执行 func,取消执行的还没找到。。。

   [NSTimer scheduledTimerWithTimeInterval:20 target:self selector:@selector(func) userInfo:nil repeats:YES];

   当前进程阻塞 2s

   [NSThread sleepForTimeInterval:2];

猜你喜欢

转载自colin-davis.iteye.com/blog/2310454