<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableView/endUpdates()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITableView(im)endUpdates"
  },
  "title" : "endUpdates()"
}
-->

# endUpdates()

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

```
func endUpdates()
```

## Discussion

Use the [`performBatchUpdates(_:completion:)`](/documentation/UIKit/UITableView/performBatchUpdates(_:completion:)) method instead of this one whenever possible.

You call this method to bracket a series of method calls that begins with [`beginUpdates()`](/documentation/UIKit/UITableView/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()`](/documentation/UIKit/UITableView/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)