iOS: Cancel or stop a performSelector:withObject: afterDelay


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // start ..
  2. - (void)performSelector:(SEL)aSelector withObject:(id)anArgument afterDelay:(NSTimeInterval)delay;
  3.  
  4. // stop..
  5.  
  6. [NSObject cancelPreviousPerformRequestsWithTarget:yourTarget selector:aSelector object: anArgument];

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.