Instance Property

preferredStyle

The style of the alert controller.

Declaration

@property(nonatomic, readonly) UIAlertControllerStyle preferredStyle;

Discussion

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

title

The title of the alert.

message

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