Instance Property


A primary text label for the view.


var textLabel: UILabel? { get }


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 detail text label present.

See Also

Configuring the Default Content Views

var detailTextLabel: UILabel?

A detail text label for the view.