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

# tableView(_:didBeginMultipleSelectionInteractionAt:)

Tells the delegate when the user starts using a two-finger pan gesture to select multiple rows in a table view.

## Declaration

```swift
optional func tableView(_ tableView: UITableView, didBeginMultipleSelectionInteractionAt indexPath: IndexPath)
```

## Parameters

- `tableView`: The table view calling this method.
- `indexPath`: The index path of the item that the user touched to start the two-finger pan gesture.

## Discussion

Discussion Your implementation of this method is a good place to indicate, in the app’s user interface, that the user is selecting multiple rows; for example, you could replace an Edit or Select button with a Done button. override func tableView(_ tableView: UITableView, didBeginMultipleSelectionInteractionAt indexPath: IndexPath) {     // Replace the Edit button with Done, and put the     // table view into editing mode.     self.setEditing(true, animated: true) }

## See Also

### Responding to row selections

- [Handling row selection in a table view](uikit/handling-row-selection-in-a-table-view.md)
- [Selecting multiple items with a two-finger pan gesture](uikit/selecting-multiple-items-with-a-two-finger-pan-gesture.md)
- [tableView(_:willSelectRowAt:)](uikit/uitableviewdelegate/tableview(_:willselectrowat:).md)
- [tableView(_:didSelectRowAt:)](uikit/uitableviewdelegate/tableview(_:didselectrowat:).md)
- [tableView(_:willDeselectRowAt:)](uikit/uitableviewdelegate/tableview(_:willdeselectrowat:).md)
- [tableView(_:didDeselectRowAt:)](uikit/uitableviewdelegate/tableview(_:diddeselectrowat:).md)
- [tableView(_:shouldBeginMultipleSelectionInteractionAt:)](uikit/uitableviewdelegate/tableview(_:shouldbeginmultipleselectioninteractionat:).md)
- [tableViewDidEndMultipleSelectionInteraction(_:)](uikit/uitableviewdelegate/tableviewdidendmultipleselectioninteraction(_:).md)
