Protocol

UIKeyInput

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

Overview

When instances of this subclass are the first responder, the system keyboard is displayed. Only a small subset of the available keyboards and languages are available to classes that adopt this protocol.

Topics

Inserting and Deleting Text

func insertText(String)

Insert a character into the displayed text.

Required.

func deleteBackward()

Delete a character from the displayed text.

Required.

var hasText: Bool

A Boolean value that indicates whether the text-entry objects has any text.

Required.

Relationships

Inherits From

See Also

Keyboard

class UIKeyCommand

An object that specifies a key press performed on a hardware keyboard and the resulting action that should take place.