Keyboard and Menus

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



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.


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

User Interactions

Touches, Presses, and Gestures

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

Drag and Drop

Bring drag and drop to your app by using interaction APIs with your views.

Pencil Interactions

Handle double-tap interactions that a user makes on Apple Pencil.

Focus-based Navigation

Navigate the interface of your UIKit app using a remote or game controller.

Peek and Pop

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


Make your apps accessible to everyone, including people with disabilities.