Instance Method

rectForRowAtIndexPath:

Returns the drawing area for a row identified by index path.

Declaration

- (CGRect)rectForRowAtIndexPath:(NSIndexPath *)indexPath;

Parameters

indexPath

An index path object that identifies a row by its index and its section index.

Return Value

A rectangle defining the area in which the table view draws the row or CGRectZero if indexPath is invalid.

See Also

Getting the Drawing Areas for the Table

- rectForSection:

Returns the drawing area for a specified section of the table view.

- rectForFooterInSection:

Returns the drawing area for the footer of the specified section.

- rectForHeaderInSection:

Returns the drawing area for the header of the specified section.