The font used to display the text.
- iOS 2.0+
- tvOS 9.0+
If you are using styled text, assigning a new value to this property causes the font to be applied to the entirety of the string in the
attributed property. If you want to apply the font to only a portion of the text, create a new attributed string with the desired style information and associate it with the label. If you are not using styled text, this property applies to the entire text string in the
The default value for this property is the system font at a size of 17 points (using the
system class method of
UIFont). Setting this property to
nil causes it to be reset to the default value.