Skip to content

Instantly share code, notes, and snippets.

@mutekinootoko
Created January 29, 2015 17:39
Show Gist options
  • Save mutekinootoko/5fc0fc0be580ddf1d4dd to your computer and use it in GitHub Desktop.
Save mutekinootoko/5fc0fc0be580ddf1d4dd to your computer and use it in GitHub Desktop.
dispatch after sec
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 2 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
NSLog(@"parameter1: %d parameter2: %f", parameter1, parameter2);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment