Skip to content

Instantly share code, notes, and snippets.

@rob-murray
Created March 25, 2014 09:45
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 rob-murray/9758267 to your computer and use it in GitHub Desktop.
Save rob-murray/9758267 to your computer and use it in GitHub Desktop.
GCD; background processing... then update UI
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
//background processing goes here
dispatch_async(dispatch_get_main_queue(), ^{
//update UI here
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment