Created
May 8, 2012 04:48
-
-
Save mogeta/2632666 to your computer and use it in GitHub Desktop.
setNeedsDisplay on MainThread
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) refreshUIViewOnMainThread:(UIView*)view{ | |
[view performSelectorOnMainThread:@selector(setNeedsDisplay) | |
withObject:nil | |
waitUntilDone:YES]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment