我创建在主线程使用NSThread子线程如何在iphone停止NSThread子线程
NSThread *newThread = [[NSThread alloc] initWithTarget:self selector:@selector(MyThread:) object:timer];
5秒后,我使用的newThread取消]在主线程停止子-thread,但它没有工作,
方法MyThread的:在newThread仍在工作
所以,什么正确答案停止newThread,THX
实际上[newThread isCancelled]是肯定的,但选择MyThread的仍然沃金
定时器的NSTimer实例 – None 2010-07-07 01:45:09