ochica
Last Updated: February 25, 2016
·
3.833K
· novalagung

iOS - Canceling delayed performSelector

performing selector using some delay

[self performSelector:@selector(someMethod) withObject:nil afterDelay:8];

canceling selector before execution time

[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(someMethod) object:nil];