Created
January 12, 2013 06:56
-
-
Save daniel-beard/4516490 to your computer and use it in GitHub Desktop.
Background / Foreground async dispatches ios objective-c
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
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