Have a reloadData for a UITableView animate when changing

Actually, it’s very simple:

[_tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationFade];

From the documentation:

Calling this method causes the table view to ask its data source for
new cells for the specified sections. The table view animates the
insertion of new cells in as it animates the old cells out.

Leave a Comment