Skip to content

Instantly share code, notes, and snippets.

@Kievkao
Last active May 10, 2016 13:55
Show Gist options
  • Select an option

  • Save Kievkao/a4e51a24ef490edb49ba to your computer and use it in GitHub Desktop.

Select an option

Save Kievkao/a4e51a24ef490edb49ba to your computer and use it in GitHub Desktop.
Swift dispatch_after
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (Int64)(UInt64(<#delayInSeconds#>) * NSEC_PER_SEC)), dispatch_get_main_queue()) {
<#code to be executed after a specified delay#>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment