<!--
{
  "availability" : [
    "iOS: 5.0.0 - 13.0.0",
    "iPadOS: 5.0.0 - 13.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "tvOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewDelegate/tableView(_:shouldShowMenuForRowAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITableViewDelegate(im)tableView:shouldShowMenuForRowAtIndexPath:"
  },
  "title" : "tableView(_:shouldShowMenuForRowAt:)"
}
-->

# tableView(_:shouldShowMenuForRowAt:)

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

```
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

<doc://com.apple.documentation/documentation/Swift/true> if the editing menu should be shown positioned near the row and pointing to it, otherwise <doc://com.apple.documentation/documentation/Swift/false>. The default value is <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

If the user tap-holds a certain row in the table view, this method (if implemented) is invoked first. Return <doc://com.apple.documentation/documentation/Swift/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)