Created
March 29, 2013 20:40
-
-
Save jwhitehorn/5273500 to your computer and use it in GitHub Desktop.
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
- (void)viewDidLoad{ | |
[super viewDidLoad]; | |
dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); | |
dispatch_async(queue, ^{ | |
//go fetch some data from the Iternet or DB here... | |
//data received! | |
dispatch_async(dispatch_get_main_queue(), ^{ | |
//update UI | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment