- (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
原文地址:http://blog.csdn.net/alincexiaohao/article/details/38340859