美文网首页
iOS 中定时任务

iOS 中定时任务

作者: ___Samson | 来源:发表于2016-03-28 18:22 被阅读0次

1.   [self performSelector:@selector() withObject:nil afterDelay:];

2.   dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{

});

3. [NSTimer scheduledTimerWithTimeInterval:1.5 target:self selector:@selector() userInfo:nil repeats:NO];

4.或者NSThread  

5.  开发者我用的方法 1 、2 比较多

相关文章

网友评论

      本文标题:iOS 中定时任务

      本文链接:https://www.haomeiwen.com/subject/ppijlttx.html