码迷,mamicode.com
首页 > 移动开发 > 详细

ios 开启线程定时请求某个方法

时间:2014-08-01 19:42:52      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:os   io   art   ar   new   ios   ad   c   


- (void)startLoop

{

        [NSThread detachNewThreadSelector:@selector(loopMethod) toTarget:self withObject:nil];

}


- (void)loopMethod

{

    [NSTimer scheduledTimerWithTimeInterval:3.0f target:self selector:@selector(requestIsHaveReview) userInfo:nil repeats:YES];

    NSRunLoop *loop = [NSRunLoop currentRunLoop];

    [loop run];

}

ios 开启线程定时请求某个方法,布布扣,bubuko.com

ios 开启线程定时请求某个方法

标签:os   io   art   ar   new   ios   ad   c   

原文地址:http://blog.csdn.net/alincexiaohao/article/details/38340859

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!