3

Instead of a

[table reloadData]

Is there a way to tell the table to reload just one row? There are reasons for my madness.

ort11
  • 3,359
  • 4
  • 36
  • 69

2 Answers2

8

It's in the docs. The method is called reloadRowsAtIndexPaths:withRowAnimation:. So you'd do something like:

NSArray *indexPaths = [NSArray arrayWithObjects:
                       [NSIndexPath indexPathForRow:5 inSection:2],
                       // Add some more index paths if you want here
                       nil];
[tableView reloadRowsAtIndexPaths:indexPaths withRowAnimation: UITableViewRowAnimationFade];
mattjgalloway
  • 34,792
  • 12
  • 100
  • 110
1

Yes there is:

(void)reloadRowsAtIndexPaths:(NSArray *)indexPaths 
          withRowAnimation:(UITableViewRowAnnimation *)annimationStyle
Roy M J
  • 6,926
  • 7
  • 51
  • 78
Dennis Mathews
  • 6,897
  • 2
  • 26
  • 39