---
title: reloadData()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uitableview/reloaddata()
---

# reloadData()

Reloads the rows and sections of the table view.

## Declaration

```swift
func reloadData()
```

## Discussion

Discussion Call this method to reload all the data that’s 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 shouldn’t be called in the methods that insert or delete rows, especially within an animation block implemented with calls to beginUpdates() and endUpdates(). important: Don’t call this method when the hasUncommittedUpdates property is true. Doing so forces the table view to delete any uncommitted changes before reloading the data.

## See Also

### Reloading the table view

- [hasUncommittedUpdates](uikit/uitableview/hasuncommittedupdates.md)
- [reconfigureRows(at:)](uikit/uitableview/reconfigurerows(at:).md)
- [reloadRows(at:with:)](uikit/uitableview/reloadrows(at:with:).md)
- [reloadSections(_:with:)](uikit/uitableview/reloadsections(_:with:).md)
- [reloadSectionIndexTitles()](uikit/uitableview/reloadsectionindextitles().md)
