Instance Property


A detail text label for the view.


var detailTextLabel: UILabel? { get }


This property is only used for tables configured with UITableView.Style.grouped.

Accessing the value in this property causes the view to create a default label for displaying a detail text string. If you are managing the content of the view yourself by adding subviews to the contentView property, you should not access this property.

The label is sized to fit the content view area in the best way possible based on the size of the string. Its size is also adjusted depending on whether there is a primary text label present.

See Also

Configuring the Default Content Views

var textLabel: UILabel?

A primary text label for the view.