Skip to content

Instantly share code, notes, and snippets.

@bjhomer
Created February 3, 2012 21:14
Show Gist options
  • Save bjhomer/1732653 to your computer and use it in GitHub Desktop.
Save bjhomer/1732653 to your computer and use it in GitHub Desktop.
block-based tableview update API.
@implementation UITableView (in_updateInBlocks)
- (void)updateWithBlock:(void (^)(void))block {
[self beginUpdates];
block();
[self endUpdates];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment