Skip to content

Instantly share code, notes, and snippets.

@fahied
Created October 7, 2014 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fahied/f9428772f4e00b6c5f05 to your computer and use it in GitHub Desktop.
Save fahied/f9428772f4e00b6c5f05 to your computer and use it in GitHub Desktop.
delay execution for time
double delayInSeconds = 600.0;
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
[weakself success:vc];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment