---
title: "indexPathForRow(at:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitableview/indexpathforrow(at:)"
---

# indexPathForRow(at:)

Returns an index path that identifies the row and section at the specified point.

## Declaration

```swift
func indexPathForRow(at point: CGPoint) -> IndexPath?
```

## Parameters

- `point`: A point in the local coordinate system of the table view (the table view’s bounds).

## Return Value

Return Value An index path representing the row and section associated with point, or nil if the point is out of the bounds of any row.

## See Also

### Getting cells and section-based views

- [cellForRow(at:)](uikit/uitableview/cellforrow(at:).md)
- [headerView(forSection:)](uikit/uitableview/headerview(forsection:).md)
- [footerView(forSection:)](uikit/uitableview/footerview(forsection:).md)
- [indexPath(for:)](uikit/uitableview/indexpath(for:).md)
- [indexPathsForRows(in:)](uikit/uitableview/indexpathsforrows(in:).md)
- [visibleCells](uikit/uitableview/visiblecells.md)
- [indexPathsForVisibleRows](uikit/uitableview/indexpathsforvisiblerows.md)
