Constants for the table view styles.


enum Style : Int


You set the table style when you initialize the table view (see init(frame:style:)). You cannot modify the style thereafter.



case plain

A plain table view.

case grouped

A table view whose sections present distinct groups of rows.

Enumeration Cases

See Also

Configuring the Table's Appearance

var style: UITableView.Style

The style of the table view.

var tableHeaderView: UIView?

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

var tableFooterView: UIView?

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

var backgroundView: UIView?

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