Instance Method

tableView(_:accessoryButtonTappedForRowWith:)

Tells the delegate that the user tapped the accessory (disclosure) view associated with a given row.

Declaration

optional func tableView(_ tableView: UITableView, accessoryButtonTappedForRowWith indexPath: IndexPath)

Parameters

tableView

The table-view object informing the delegate of this event.

indexPath

An index path locating the row in tableView.

Discussion

The delegate usually responds to the tap on the disclosure button (the accessory view) by displaying a new view related to the selected row. This method is not called when an accessory view is set for the row at indexPath.

See Also

Managing Accessory Views

func tableView(UITableView, editActionsForRowAt: IndexPath)

Asks the delegate for the actions to display in response to a swipe in the specified row.