Instance Property

tableHeaderView

The view that is displayed above the table's content.

Declaration

@property(nonatomic, strong) UIView *tableHeaderView;

Discussion

Use this property to specify a header view for your entire table. The header view is the first item to appear in the table's view's scrolling content, and it is separate from the header views you add to individual sections. The default value of this property is nil.

When assigning a view to this property, set the height of that view to a nonzero value. The table view respects only the height of your view's frame rectangle; it adjusts the width of your header view automatically to match the table view's width.

See Also

Configuring the Table's Appearance

style

The style of the table view.

UITableViewStyle

Constants for the table view styles.

tableFooterView

The view that is displayed below the table's content.

backgroundView

The background view of the table view.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software