Instance Property

dataDetectorTypes

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

Declaration

@property(nonatomic) UIDataDetectorTypes dataDetectorTypes;

Discussion

You can use this property to specify the types of data (phone numbers, http links, and so on) that should be automatically converted to URLs in the text view. When tapped, the text view opens the application responsible for handling the URL type and passes it the URL. Note that data detection does not occur if the text view's editable property is set to YES.

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.

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.