标签:style os io ar art new log ad
- (void)startLoop
{
[NSThread detachNewThreadSelector:@selector(loopMethod) toTarget:self withObject:nil];
}
- (void)loopMethod
{
[NSTimer scheduledTimerWithTimeInterval:3.0f target:self selector:@selector(toDo) userInfo:nil repeats:YES];
NSRunLoop *loop = [NSRunLoop currentRunLoop];
[loop run];
}
- (void)toDo
{
NSLog("去做些事情");
}
ios 独立创建一条线程,去做些事情,布布扣,bubuko.com
标签:style os io ar art new log ad
原文地址:http://blog.csdn.net/alincexiaohao/article/details/38497203