Contents

CPAlertAction

An object that encapsulates an action the user can perform on an action sheet or alert.

Declaration

class CPAlertAction

Overview

Use an alert action to display a button on an alert. The combination of the alert and the action styles determines the appearance of the action button. To perform an action after the user taps the button, provide a block to the action’s handler property.

Topics

Creating an Alert Action

Getting the Title

Getting the Action Style

Getting the Action Handler

Initializers

Instance Properties

See Also

Actions and Alerts