Class

UIMenuItem

A custom item in the editing menu managed by the menu controller.

Declaration

@interface UIMenuItem : NSObject

Overview

Custom menu items appear in the menu after any validated system items. A UIMenuItem object has two properties: a title and an action selector identifying the method to invoke in the handling responder object. Targets are not specified; a suitable target is found via normal traversal of the responder chain. To have custom menu items appear in the editing menu, you must add them to the menuItems property of the UIMenuController object.

Topics

Creating a Menu Item

- initWithTitle:action:

Creates and returns a menu-item object initialized with the given title and action.

Accessing Menu-Item Attributes

title

The title of the menu item.

action

A selector identifying the method of the responder object to invoke for handling of the menu command.

Relationships

Inherits From

See Also

Inline Edit Menus

UIMenuController

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

UIResponderStandardEditActions

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