Class

UICommandAlternate

An object representing an alternative action for a command.

Declaration

class UICommandAlternate : NSObject

Topics

Creating a Command Alternative

init(title: String, action: Selector, modifierFlags: UIKeyModifierFlags)

Creates a command alternative with the specified title, action, and modifier flags.

Getting Information About the Alternative

var title: String

The command alternative's title.

var action: Selector

The command alternative's action-method selector.

var modifierFlags: UIKeyModifierFlags

A bit mask of modifier flags for the command alternative.

Relationships

Inherits From

See Also

Getting Command Alternatives

var alternates: [UICommandAlternate]

An array of alternative actions to take for the command.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software