Created
September 19, 2012 02:53
-
-
Save jeksys/3747387 to your computer and use it in GitHub Desktop.
dispatch_after
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double delayInSeconds = 2.0; | |
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC); | |
dispatch_after(popTime, dispatch_get_main_queue(), ^(void) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment