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

# tableView(_:shouldShowMenuForRowAt:)

Asks the delegate if the editing menu should be shown for a certain row.

## Declaration

```swift
optional func tableView(_ tableView: UITableView, shouldShowMenuForRowAt indexPath: IndexPath) -> Bool
```

## Parameters

- `tableView`: The table view that is making this request.
- `indexPath`: The index path of the row.

## Return Value

Return Value true if the editing menu should be shown positioned near the row and pointing to it, otherwise false. The default value is false.

## Discussion

Discussion If the user tap-holds a certain row in the table view, this method (if implemented) is invoked first. Return false if the editing menu shouldn’t be shown—for example, the cell corresponding to the row contains content that shouldn’t be copied or pasted over.

## See Also

### Responding to row actions

- [tableView(_:leadingSwipeActionsConfigurationForRowAt:)](uikit/uitableviewdelegate/tableview(_:leadingswipeactionsconfigurationforrowat:).md)
- [tableView(_:trailingSwipeActionsConfigurationForRowAt:)](uikit/uitableviewdelegate/tableview(_:trailingswipeactionsconfigurationforrowat:).md)
- [tableView(_:canPerformAction:forRowAt:withSender:)](uikit/uitableviewdelegate/tableview(_:canperformaction:forrowat:withsender:).md)
- [tableView(_:performAction:forRowAt:withSender:)](uikit/uitableviewdelegate/tableview(_:performaction:forrowat:withsender:).md)
- [tableView(_:editActionsForRowAt:)](uikit/uitableviewdelegate/tableview(_:editactionsforrowat:).md)
