Created
October 15, 2012 07:03
-
-
Save andreortiz82/3891145 to your computer and use it in GitHub Desktop.
dispatch_async script ios
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(kBgQueue, ^{ | |
NSData* data = [NSData dataWithContentsOfURL: | |
kLatestKivaLoansURL]; | |
[self performSelectorOnMainThread:@selector(fetchedData:) | |
withObject:data waitUntilDone:YES]; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment