メインスレッドでNSThreadを使用してサブスレッドを作成しました
NSThread *newThread = [[NSThread alloc] initWithTarget:self selector:@selector(MyThread:) object:timer];
5秒後、メインスレッドで[newThread cancel]を使用してサブスレッドを停止しましたが、機能しませんでした。
メソッドMyThread:newThreadではまだ機能しています
だから、newThread、THXを停止するための正しい答えは何ですか
実際には[newThreadisCancelled]はYESですが、セレクターMyThreadはまだ起動していました