Last Updated: February 25, 2016
·
5.201K
· 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];