iOS Reference Library Apple Developer
Search

UITextInputDelegate Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/UIKit.framework
Availability
Available in iOS 3.2 and later.
Declared in
UITextInput.h

Overview

The text input delegate acts as an intermediary between a document and the text input system, conveying notifications of pending or transpired changes in text and selection in the document.

The 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.

Tasks

Notifying the Delegate of Textual Changes

Notifying the Delegate of Selection Changes

Instance Methods

selectionDidChange:

Tells the input delegate when the selection has changed in the document. (required)

- (void)selectionDidChange:(id <UITextInput>)textInput

Parameters
textInput

The document instance whose class adopts the UITextInput protocol.

Availability
  • Available in iOS 3.2 and later.
Declared In
UITextInput.h

selectionWillChange:

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

- (void)selectionWillChange:(id <UITextInput>)textInput

Parameters
textInput

The document instance whose class adopts the UITextInput protocol.

Availability
  • Available in iOS 3.2 and later.
Declared In
UITextInput.h

textDidChange:

Tells the input delegate when text has changed in the document. (required)

- (void)textDidChange:(id <UITextInput>)textInput

Parameters
textInput

The document instance whose class adopts the UITextInput protocol.

Availability
  • Available in iOS 3.2 and later.
Declared In
UITextInput.h

textWillChange:

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

- (void)textWillChange:(id <UITextInput>)textInput

Parameters
textInput

The document instance whose class adopts the UITextInput protocol.

Availability
  • Available in iOS 3.2 and later.
Declared In
UITextInput.h



Last updated: 2010-02-25

Did this document help you? Yes It's good, but... Not helpful...