Perform block after delay
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, delay * NSEC_PER_SEC), dispatch_get_current_queue(), block);
可以封装一个 NSObject Category 来方便使用。 via Tutorial: Run a Block of Code After a Delay
Was this page helpful?
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, delay * NSEC_PER_SEC), dispatch_get_current_queue(), block);
可以封装一个 NSObject Category 来方便使用。 via Tutorial: Run a Block of Code After a Delay
Was this page helpful?