Instance Property

typingAttributes

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

Declaration

@property(nonatomic, copy) NSDictionary<NSAttributedStringKey, id> *typingAttributes;

Discussion

This dictionary contains the attribute keys (and corresponding values) to apply to newly typed text. When the text view’s selection changes, the contents of the dictionary are cleared automatically.

See Also

Configuring the Text Attributes

text

The text displayed by the text view.

attributedText

The styled text displayed by the text view.

font

The font of the text.

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.

linkTextAttributes

The attributes to apply to links.

textContainerInset

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