A view that displays the value of the
current property for a button.
- iOS 3.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Although this property is read-only, its own properties are read/write. Use these properties primarily to configure the text of the button. For example:
Do not use the label object to set the text color or the shadow color. Instead, use the
set methods of this class to make those changes. To set the actual text of the label, use
button does not let you set the text).
title property returns a value even if the button has not been displayed yet. The value of the property is
nil for system buttons.