Contents

tableView(_:didEndEditingRowAt:)

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

Declaration

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:) message to the delegate to allow it to adjust its user interface.

See Also

Editing table rows