There are several well known methods for refresh the UITableView
.
-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-reloadSections:withRowAnimation:
– you can call that method with one ofUITableViewRowAnimation
enum type to animate reloading a table view. You also specify here which sections you wish to reload-reloadRowsAtIndexPaths:withRowAnimation:
– it is similar to previous method except here you passindexPath
s array of cells which you wish to reload
solved How to refresh a uitableview?