Instance Property


The actions that the user can take in response to the alert or action sheet.


@property(nonatomic, readonly) NSArray<UIAlertAction *> *actions;


The actions are in the order in which you added them to the alert controller. This order also corresponds to the order in which they are displayed in the alert or action sheet. The second action in the array is displayed below the first, the third is displayed below the second, and so on.

See Also

Configuring the User Actions

- addAction:

Attaches an action object to the alert or action sheet.


The preferred action for the user to take from an alert.

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