在我的應用我使用此代碼開始NSThreadIOS:停止通用線程
[NSThread detachNewThreadSelector:@selector(threadStart) toTarget:self withObject:nil];
- (void)threadStart
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
//something to do...
[pool release];
}
我的問題是,我想啓動和停止,有時這個線程,然後我要聲明在.H線程,有一個通用線程...有可能嗎?