---
title: "tableView(_:editingStyleForRowAt:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitableviewdelegate/tableview(_:editingstyleforrowat:)"
---

# tableView(_:editingStyleForRowAt:)

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

## Declaration

```swift
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

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

## Discussion

Discussion This method allows the delegate to customize the editing style of the cell located atindexPath. If the delegate does not implement this method and the UITableViewCell object is editable (that is, it has its isEditing property set to true), the cell has the UITableViewCell.EditingStyle.delete style set for it.

## See Also

### Editing table rows

- [tableView(_:willBeginEditingRowAt:)](uikit/uitableviewdelegate/tableview(_:willbegineditingrowat:).md)
- [tableView(_:didEndEditingRowAt:)](uikit/uitableviewdelegate/tableview(_:didendeditingrowat:).md)
- [tableView(_:titleForDeleteConfirmationButtonForRowAt:)](uikit/uitableviewdelegate/tableview(_:titlefordeleteconfirmationbuttonforrowat:).md)
- [tableView(_:shouldIndentWhileEditingRowAt:)](uikit/uitableviewdelegate/tableview(_:shouldindentwhileeditingrowat:).md)
