tableView(_:editingStyleForRowAt:)
Asks the delegate for the editing style of a row at a particular location in a table view.
Declaration
optional func tableView(_ tableView: UITableView, editingStyleForRowAt indexPath: IndexPath) -> UITableViewCell.EditingStyleParameters
- 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 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.