Instance Method

indexPathForRowAtPoint:

Returns an index path identifying the row and section at the given point.

Declaration

- (NSIndexPath *)indexPathForRowAtPoint:(CGPoint)point;

Parameters

point

A point in the local coordinate system of the table view (the table view’€™s bounds).

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

- cellForRowAtIndexPath:

Returns the table cell at the specified index path.

- headerViewForSection:

Returns the header view associated with the specified section.

- footerViewForSection:

Returns the footer view associated with the specified section.

- indexPathForCell:

Returns an index path representing the row and section of a given table-view cell.

- indexPathsForRowsInRect:

An array of index paths, each representing a row enclosed by a given rectangle.

visibleCells

The table cells that are visible in the table view.

indexPathsForVisibleRows

An array of index paths, each identifying a visible row in the table view.