CPAlertAction
An object that encapsulates an action the user can perform on an action sheet or alert.
Declaration
class CPAlertActionOverview
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.