我安排一个NSTimer
这样的实例:
[NSTimer scheduledTimerWithTimeInterval:.2 target:self selector:@selector(someMethod) userInfo:nil repeats:YES];
我可以叫invalidate
我NSTimer
阻止它开火,但是
[NSTimer cancelPreviousPerformRequestsWithTarget:self];
不停止计时器。我已经检查过并且[NSRunLoop currentRunLoop]
完全一样(正如预期的那样,这些是对用户点击的响应),当然self
实例总是相同的。为什么不cancel
取消?