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

# tableView(_:editingStyleForRowAt:)

Asks the delegate for the editing style of a row at a particular location in a table view.

```
optional func tableView(_ tableView: UITableView, editingStyleForRowAt indexPath: IndexPath) -> UITableViewCell.EditingStyle
```

## Parameters

`tableView`

The table view requesting this information.

`indexPath`

An index path locating a row in `tableView`.

## Return Value

The editing style of the cell for the row identified by `indexPath`.

## Discussion

This method allows the delegate to customize the editing style of the cell located at`indexPath`. If the delegate does not implement this method and the `UITableViewCell` object is editable (that is, it has its [`isEditing`](/documentation/UIKit/UITableViewCell/isEditing) property set to <doc://com.apple.documentation/documentation/Swift/true>), the cell has the [`UITableViewCell.EditingStyle.delete`](/documentation/UIKit/UITableViewCell/EditingStyle-swift.enum/delete) style set for it.

---

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)