naotokui
12/20/2012 - 8:34 AM

Update a specific cell in tableview

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];
}