Instance Property

backgroundView

The background view of the table view.

Declaration

@property(nonatomic, strong) UIView *backgroundView;

Discussion

Assign a background view to change the color behind your table's sections and rows. The default value of this property is nil.

When you assign a view to this property, the table view automatically resizes that view to match its own bounds. Your background view appears behind all cells, header views, and footer views and does not scroll with the rest of the table's content.

See Also

Configuring the Table's Appearance

style

The style of the table view.

UITableViewStyle

Constants for the table view styles.

tableHeaderView

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

tableFooterView

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