Created
February 17, 2014 05:41
-
-
Save blacklee/9045300 to your computer and use it in GitHub Desktop.
performselectoronmainthread and get return value
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
// http://stackoverflow.com/a/3346157/490794 | |
// call | |
NSMutableDictionary *myDict; | |
[object performSelectorOnMainThread:@selector(getElements:) | |
withObject:&myDict waitUntilDone:YES]; | |
// define | |
- (void)getElements:(NSMutableDictionary **)objects; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment