Is [tableView reloadData] affects perfomance in ios? What is [tableView reloadData]? How it is reloading the tableview? Is there any other way to reload tableview?
I want to add some rows to the end of the tableview. How can i do this?
What is the difference between
[self.tableView reloadData]
and
[self.tableView beginUpdates];
[self.tableView insertRowsAtIndexPaths:insertIndexPathswithRowAnimation:UITableViewRowAnimationAutomatic];
[self.tableView endUpdates];
reloadData does just that – a complete update of the (visible part of the) table view.
If you just need to update certain cells, i.e. update, insert, remove or move, use the appropriate update methods instead. This will even animate the changes.