ochica
Last Updated: February 25, 2016
·
3.402K
· novalagung
16162fed91387cc1cec055412db0022d

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];
Say Thanks
Respond