An object that encapsulates information about a button displayed in an alert or action sheet.
- watchOS 2.0+
Create instances of this class using the
action method and pass them to the
present method of one of your interface controllers. The sheet uses your action objects to create the corresponding buttons. When creating an alert action, you specify the title and visual style to apply to the button and a block to execute when the button is tapped. Use the defined visual styles to convey the purpose of the button to the user.