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.