Skip to content

Instantly share code, notes, and snippets.

@naotokui
Created December 20, 2012 08:34
Show Gist options
  • Save naotokui/4343823 to your computer and use it in GitHub Desktop.
Save naotokui/4343823 to your computer and use it in GitHub Desktop.
Update a specific cell in tableview
- (void)reloadRow: (NSInteger) row inSection:(NSInteger) section
{
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row inSection:section];
NSArray *indexPaths = [[NSArray alloc] initWithObject:indexPath];
[self.tableView reloadRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationNone]; //UITableViewRowAnimationFace or whatever
[indexPaths release];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment