Class

UIMenuElement

An object representing a menu, action, or command.

Declaration

@interface UIMenuElement : NSObject

Overview

UIMenuElement defines the behavior shared by all menus, actions, and commands. You do not create UIMenuElement objects directly. Instead, you create an appropriate object that inherits from this class, such as UIMenu, UIAction, or UICommand.

Topics

Getting the Element Attributes

title

The title of the menu element.

image

The image to display alongside the menu element's title.

Creating a Menu Element

Relationships

Inherits From

See Also

Menu Elements and Keyboard Shortcuts

UIAction

A menu element that performs its action in a block.

UICommand

A menu element that performs its action in a selector.

UIKeyCommand

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

UIMenuElementAttributes

Attributes that determine the style of the menu element.

UIMenuElementState

Constants that indicate the state of an action- or command-based menu element.