Instance Method

headerViewForSection:

Returns the header view associated with the specified section.

Declaration

- (UITableViewHeaderFooterView *)headerViewForSection:(NSInteger)section;

Parameters

section

An index number that identifies a section of the table. Table views in a plain style have a section index of zero.

Return Value

The header view associated with the section, or nil if the section does not have a header view.

See Also

Getting Cells and Section-Based Views

- cellForRowAtIndexPath:

Returns the table cell at the specified index path.

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

- indexPathForRowAtPoint:

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

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