iOS&Xcode奇技淫巧iOS开发shmily-iOS/Mac

NSTimer使用两点注意事项

2015-06-05  本文已影响1427人  TimBao
      countDownTimer = [NSTimer timerWithTimeInterval:1.0 target:self selector:@selector(countDown:) userInfo:nil repeats:YES];
      NSRunLoop *currentRunLoop = [NSRunLoop currentRunLoop];
      [currentRunLoop addTimer:countDownTimer forMode:NSRunLoopCommonModes];  

blog addr:http://timbao.github.io/blog/2015/06/05/use%20NSTimer%20attention/

上一篇下一篇

猜你喜欢

热点阅读