Instance Method


Asks the delegate whether the background of the specified row should be indented while the table view is in editing mode.


optional func tableView(_ tableView: UITableView, shouldIndentWhileEditingRowAt indexPath: IndexPath) -> Bool



The table-view object requesting this information.


An index-path object locating the row in its section.

Return Value

true if the background of the row should be indented, otherwise false.


If the delegate does not implement this method, the default is true. This method is unrelated to tableView(_:indentationLevelForRowAt:).

See Also

Editing Table Rows

func tableView(UITableView, willBeginEditingRowAt: IndexPath)

Tells the delegate that the table view is about to go into editing mode.

func tableView(UITableView, didEndEditingRowAt: IndexPath?)

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

func tableView(UITableView, editingStyleForRowAt: IndexPath) -> UITableViewCell.EditingStyle

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