Skip to content

Instantly share code, notes, and snippets.

@mogeta

mogeta/gist:2632666

Created May 8, 2012
Embed
What would you like to do?
setNeedsDisplay on MainThread
- (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