Instance Property


The style of the alert controller.


@property(nonatomic, readonly) UIAlertControllerStyle preferredStyle;


The value of this property is set to the value you specified in the alertControllerWithTitle:message:preferredStyle: method. This value determines how the alert is displayed onscreen.

See Also

Configuring the Alert


The title of the alert.


Descriptive text that provides more details about the reason for the 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