Skip to content

Instantly share code, notes, and snippets.

@andrey-str
Created April 20, 2016 15:22
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 andrey-str/0f94cafa8657e8b31e7091f504259d12 to your computer and use it in GitHub Desktop.
Save andrey-str/0f94cafa8657e8b31e7091f504259d12 to your computer and use it in GitHub Desktop.
double delayInSeconds = 0.7;
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
dispatch_after(popTime, dispatch_get_main_queue(), ^(void) {
// Your code here..
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment