如果我在 UIView 的子类中这样做:
[self performSelector:@selector(doSomething) withObject:nil afterDelay:5];
然后像这样取消它(我已经尝试了两个版本):
[[NSRunLoop currentRunLoop] cancelPerformSelectorsWithTarget:self];
//[[NSRunLoop mainRunLoop] cancelPerformSelectorsWithTarget:self];
“doSomething”方法仍然被调用。我究竟做错了什么?