If I do this in a subclass of UIView:
[self performSelector:@selector(doSomething) withObject:nil afterDelay:5];
Then undo it like this (I tried both versions):
[[NSRunLoop currentRunLoop] cancelPerformSelectorsWithTarget:self];
The doSomething method is still called. What am I doing wrong?
source
share