我在主线程中使用 NSThread 创建了一个子线程
NSThread *newThread = [[NSThread alloc] initWithTarget:self selector:@selector(MyThread:) object:timer];
5 秒后,我在主线程中使用 [newThread cancel] 来停止子线程,但它没有工作,
方法 MyThread:在 newThread 中仍然有效
那么,停止 newThread 的正确答案是什么,THX
实际上 [newThread isCancelled] 是 YES,但选择器 MyThread 仍在工作