Posted By

BenClayton on 02/12/11


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Tintenklecks
cnathan


iOS: Cancel or stop a performSelector:withObject: afterDelay


 / Published in: Objective C
 

  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  

You need to login to post a comment.