IOS How to using nsthread
[NSThread detachNewThreadSelector:@selector(render) toTarget:self withObject:nil];
or
NSThread *myThread =[[NSThread alloc]initWithTarget:self selector:@selector(
) object:nil]; [myThread start];
render
- (void)render {
// do something
}
Comments
Post a Comment