Return to Snippet

Revision: 65309
at November 16, 2013 23:13 by yannxou


Initial Code
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];

});

Initial URL

                                

Initial Description
enqueue a block at a certain time

Initial Title
Execute a block after some delay

Initial Tags
ios

Initial Language
Objective C