- (void)startLoop
{
[ NSThread detachNewThreadSelector:@selector(loopMethod) toTarget:selfwithObject:nil];
}
- (void)loopMethod
{
[ NSTimer scheduledTimerWithTimeInterval:3.0ftarget:selfselector:@selector(requestIsHaveReview) userInfo:nilrepeats:YES];
NSRunLoop *loop = [NSRunLoopcurrentRunLoop];
[loop run];
}
原文:http://blog.csdn.net/alincexiaohao/article/details/38340859
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!