[Solved] How to refresh a uitableview?


There are several well known methods for refresh the UITableView.

  1. -reloadData – this method totally refreshes the whole table view, by keeping the current row position on the screen. However, this works not very beautiful and there are two other methods
  2. -reloadSections:withRowAnimation: – you can call that method with one of UITableViewRowAnimation enum type to animate reloading a table view. You also specify here which sections you wish to reload
  3. -reloadRowsAtIndexPaths:withRowAnimation: – it is similar to previous method except here you pass indexPaths array of cells which you wish to reload

solved How to refresh a uitableview?