Keyboard and Menus

Handle keyboard input, and display a menu of custom actions.

Topics

Keyboard

protocol UIKeyInput

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

class UIKeyCommand

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

Menus

class UIMenuController

The menu interface for the Cut, Copy, Paste, Select, Select All, and Delete commands.

class UIMenuItem

A custom item in the editing menu managed by the UIMenuController object.

protocol UIResponderStandardEditActions

A set of standard methods that apps can adopt to support editing.

Custom Input

class UIInputView

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

See Also

Event Handling

Understanding Event Handling, Responders, and the Responder Chain

Learn how events are propagated through your app and how you handle them.

Touches, Presses, and Gestures

Encapsulate your app's event-handling logic in gesture recognizers so that you can reuse that code throughout your app.

Peek and Pop

Use 3D Touch input to display custom previews and actions for your content.