Enumeration
UITableViewCell.CellStyle
An enumeration for the various styles of cells.
SDKs
- iOS 3.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Overview
In all these cell styles, the larger of the text labels is accessed via the textLabel
property and the smaller via the detailTextLabel
property.
Topics
Cell Styles
case `default`
A simple style for a cell with a text label (black and left-aligned) and an optional image view.
case value1
A style for a cell with a label on the left side of the cell with left-aligned and black text; on the right side is a label that has smaller blue text and is right-aligned. The Settings application uses cells in this style.
case value2
A style for a cell with a label on the left side of the cell with text that is right-aligned and blue; on the right side of the cell is another label with smaller text that is left-aligned and black. The Phone/Contacts application uses cells in this style.
case subtitle
A style for a cell with a left-aligned label across the top and a left-aligned label below it in smaller gray text.
See Also
Creating a Table View Cell