Protocol

UITextInputDelegate

An intermediary between a document and the text input system.

Declaration

@protocol UITextInputDelegate

Overview

A UITextInputDelegate conveys notifications of pending or transpired changes in text and selection in the document. UIKit provides a private text input delegate, which it assigns at runtime to the inputDelegate property of the object whose class adopts the UITextInput protocol.

Topics

Notifying the Delegate of Textual Changes

- textWillChange:

Tells the input delegate when text is about to change in the document.

Required.

- textDidChange:

Tells the input delegate when text has changed in the document.

Required.

Notifying the Delegate of Selection Changes

- selectionWillChange:

Tells the input delegate when the selection is about to change in the document.

Required.

- selectionDidChange:

Tells the input delegate when the selection has changed in the document.

Required.

Relationships

Inherits From

Conforming Types

See Also

Input

UITextInput

A set of methods you implement to interact with the text input system and enable features such as autocorrection and multistage text input in documents.

UITextInputTokenizer

A tokenizer, which is an object that allows the text input system to evaluate text units of different granularities.

UIKeyInput

A set of methods a subclass of UIResponder uses to implement simple text entry.

UITextInputMode

The current text-input mode.

UITextInputStringTokenizer

A base implementation of the UITextInputTokenizer protocol.

UIDictationPhrase

An object that represents the textual interpretation of a spoken phrase as dictated by a user.

UIInputView

An object that displays and manages custom input for a view when that view becomes the first responder.