Created
August 8, 2012 14:16
-
-
Save a-v-ebrahimi/3295362 to your computer and use it in GitHub Desktop.
iOS : Multithread block + UI
This file contains hidden or 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), ^{ | |
// Add code here to do background processing | |
// | |
// | |
dispatch_async( dispatch_get_main_queue(), ^{ | |
// Add code here to update the UI/send notifications based on the | |
// results of the background processing | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment