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];
Written by Noval Agung Prayogo
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Objective-c
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#