---
title: endUpdates()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uitableview/endupdates()
---

# endUpdates()

Concludes a series of method calls that insert, delete, select, or reload rows and sections of the table view.

## Declaration

```swift
func endUpdates()
```

## Discussion

Discussion Use the performBatchUpdates(_:completion:) method instead of this one whenever possible. You call this method to bracket a series of method calls that begins with beginUpdates() and that consists of operations to insert, delete, select, and reload rows and sections of the table view. When you call endUpdates, UITableView animates the operations simultaneously. Invocations of beginUpdates() and endUpdates can be nested. If you don’t make the insertion, deletion, and selection calls inside this block, table attributes such as row count can become invalid.

## See Also

### Performing batch updates to rows and sections

- [performBatchUpdates(_:completion:)](uikit/uitableview/performbatchupdates(_:completion:).md)
- [beginUpdates()](uikit/uitableview/beginupdates().md)
