/ Published in: Objective C

enqueue a block at a certain time
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
double delayInSeconds = 15.0; dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC); dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ [self fooFirstInput:first secondInput:second]; });
Comments
