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
-
– textWillChange:required method -
– textDidChange:required method
Notifying the Delegate of Selection Changes
-
– selectionWillChange:required method -
– selectionDidChange:required method
Instance Methods
selectionDidChange:
Tells the input delegate when the selection has changed in the document. (required)
Parameters
- textInput
The document instance whose class adopts the UITextInput protocol.
Availability
- Available in iOS 3.2 and later.
See Also
Declared In
UITextInput.hselectionWillChange:
Tells the input delegate when the selection is about to change in the document. (required)
Parameters
- textInput
The document instance whose class adopts the UITextInput protocol.
Availability
- Available in iOS 3.2 and later.
See Also
Declared In
UITextInput.htextDidChange:
Tells the input delegate when text has changed in the document. (required)
Parameters
- textInput
The document instance whose class adopts the UITextInput protocol.
Availability
- Available in iOS 3.2 and later.
See Also
Declared In
UITextInput.htextWillChange:
Tells the input delegate when text is about to change in the document. (required)
Parameters
- textInput
The document instance whose class adopts the UITextInput protocol.
Availability
- Available in iOS 3.2 and later.
See Also
Declared In
UITextInput.h© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-02-25)