Instance Method

reloadData()

Reloads the rows and sections of the table view.

Declaration

func reloadData()

Discussion

Call this method to reload all the data that is used to construct the table, including cells, section headers and footers, index arrays, and so on. For efficiency, the table view redisplays only those rows that are visible. It adjusts offsets if the table shrinks as a result of the reload. The table view’s delegate or data source calls this method when it wants the table view to completely reload its data. It should not be called in the methods that insert or delete rows, especially within an animation block implemented with calls to beginUpdates() and endUpdates().

See Also

Reloading the Table View

var hasUncommittedUpdates: Bool

A Boolean value indicating whether the table view contains drop placeholders or is reordering its rows as part of handling a drop.

func reloadRows(at: [IndexPath], with: UITableViewRowAnimation)

Reloads the specified rows using an animation effect.

func reloadSections(IndexSet, with: UITableViewRowAnimation)

Reloads the specified sections using a given animation effect.

func reloadSectionIndexTitles()

Reloads the items in the index bar along the right side of the table view.