UITableView reload data

You can always use [tableView reloadData] method!

But if you have some data stored locally and loading new stuff from some server then you can go for:

[tableView beginUpdates];
[tableView insertRowsAtIndexPaths:*arrayOfIndexPaths* withRowAnimation:*rowAnimation*];
[tableView endUpdates];

And if you want to delete existing row you can use

[tableView beginUpdates];
[tableView deleteRowsAtIndexPaths:*arrayOfIndexPaths* withRowAnimation:*rowAnimation*];
[tableView endUpdates];

Leave a Comment