UITableViewStyle Enum

Definition

The visual style for a UITableView. A table view's style can only be set when it is instantiated.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum UITableViewStyle
type UITableViewStyle = 
Inheritance
UITableViewStyle
Attributes

Fields

Grouped 1

Table style where each section is grouped into a rounded-rectangle. The table view's background can be see behind the rounded-rectangle groupings. Section headers and footers do not 'float' while scrolling.

Plain 0

Cells in the plain style take the entire width of the table view - there is no rounded-rectangle grouping. Section headers and footers 'float' (stick to the top/bottom of the table view) as the user scrolls through the section. An index may be implemented to make scrolling through long lists faster.

Remarks

Some table view features are only available for a specific style, for example Plain tables can provide an index to help scroll through long lists but Grouped tables should not.

Applies to