Instance Property

font

The font of the text.

Declaration

@property(nonatomic, strong) UIFont *font;

Discussion

This property applies to the entire text string. The default value of this property is the body style of the system font.

In iOS 6 and later, assigning a new value to this property causes the new font to be applied to the entire contents of the text view. If you want to apply the font to only a portion of the text, you must create a new attributed string with the desired style information and assign it to the attributedText property.

See Also

Configuring the Text Attributes

text

The text displayed by the text view.

attributedText

The styled text displayed by the text view.

textColor

The color of the text.

editable

A Boolean value indicating whether the receiver is editable.

allowsEditingTextAttributes

A Boolean value indicating whether the text view allows the user to edit style information.

dataDetectorTypes

The types of data converted to tappable URLs in the text view.

textAlignment

The technique to use for aligning the text.

- hasText

Returns a Boolean value indicating whether the text view currently contains any text.

typingAttributes

The attributes to apply to new text being entered by the user.

linkTextAttributes

The attributes to apply to links.

textContainerInset

The inset of the text container's layout area within the text view's content area.