Protocol: UIKeyInput
Overview
A subclass of UIResponder can adopt this protocol to implement simple text entry. When instances of this subclass are the first responder, the system keyboard is displayed. Delete a character from the displayed text. (required)A Boolean value that indicates whether the text-entry objects has any text. (required)Insert a character into the displayed text. (required)
Instance Method Summary (collapse)
-
- deleteBackward
Delete a character from the displayed text.
-
- hasText
A Boolean value that indicates whether the text-entry objects has any text.
-
- insertText:
Insert a character into the displayed text.
Instance Method Details
- (Object) deleteBackward
Delete a character from the displayed text. (required) Remove the character just before the cursor from your class’s backing store and redisplay the text.
- (Boolean) hasText
A Boolean value that indicates whether the text-entry objects has any text. (required)
- (Object) insertText(text)
Insert a character into the displayed text. (required) Add the character text to your class’s backing store at the index corresponding to the cursor and redisplay the text.