<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewDelegate/tableView(_:didEndEditingRowAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITableViewDelegate(im)tableView:didEndEditingRowAtIndexPath:"
  },
  "title" : "tableView(_:didEndEditingRowAt:)"
}
-->

# tableView(_:didEndEditingRowAt:)

Tells the delegate that the table view has left editing mode.

```
optional func tableView(_ tableView: UITableView, didEndEditingRowAt indexPath: IndexPath?)
```

## Parameters

`tableView`

The table view providing this information.

`indexPath`

An index path locating the row in `tableView`.

## Discussion

This method is called when the table view exits editing mode after having been put into the mode by the user swiping across the row identified by `indexPath`. As a result, a Delete button appears in the row; however, in this “swipe to delete” mode the table view does not display any insertion, deletion, and reordering controls. When entering this “swipe to delete” editing mode, the table view sends a [`tableView(_:willBeginEditingRowAt:)`](/documentation/UIKit/UITableViewDelegate/tableView(_:willBeginEditingRowAt:)) message to the delegate to allow it to adjust its user interface.

---

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)