---
title: "tableView(_:contextMenuConfigurationForRowAt:point:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitableviewdelegate/tableview(_:contextmenuconfigurationforrowat:point:)"
---

# tableView(_:contextMenuConfigurationForRowAt:point:)

Returns a context menu configuration for the row at a point.

## Declaration

```swift
optional func tableView(_ tableView: UITableView, contextMenuConfigurationForRowAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration?
```

## Parameters

- `tableView`: The table view containing the row.
- `indexPath`: The index path of the row.
- `point`: The location of the interaction in the table view’s coordinate space.

## Return Value

Return Value A context menu configuration for the indexPath.

## Discussion

Discussion Use this method to provide a UIContextMenuConfiguration describing the menu to present. Return nil to prevent the interaction from beginning. Return an empty configuration to begin the interaction and then fail with a cancellation effect. Use the empty configuration to indicate to users that it’s possible for this element to present a menu, but that there are no actions to present at this time.

## See Also

### Managing context menus

- [Adding context menus in your app](uikit/adding-context-menus-in-your-app.md)
- [tableView(_:previewForDismissingContextMenuWithConfiguration:)](uikit/uitableviewdelegate/tableview(_:previewfordismissingcontextmenuwithconfiguration:).md)
- [tableView(_:previewForHighlightingContextMenuWithConfiguration:)](uikit/uitableviewdelegate/tableview(_:previewforhighlightingcontextmenuwithconfiguration:).md)
- [tableView(_:willDisplayContextMenu:animator:)](uikit/uitableviewdelegate/tableview(_:willdisplaycontextmenu:animator:).md)
- [tableView(_:willEndContextMenuInteraction:animator:)](uikit/uitableviewdelegate/tableview(_:willendcontextmenuinteraction:animator:).md)
- [tableView(_:willPerformPreviewActionForMenuWith:animator:)](uikit/uitableviewdelegate/tableview(_:willperformpreviewactionformenuwith:animator:).md)
