Reload UITableView cells

No comments on Reload UITableView cells

Written by

in

Sometimes it’s needed to reload only some of the rows of UITableView to save some time and energy and not reload whole the table. This is how it can be done:

NSIndexPath * indexPath = \
   [NSIndexPath indexPathForRow:row inSection:0]; 
[self.tableView reloadRowsAtIndexPaths: \
   [NSArray arrayWithObject:indexPath] \
   withRowAnimation:UITableViewRowAnimationMiddle];

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *