UIAlertControllerStyle Enum

Definition

Enumerates whether a UIAlertController is displaying an action sheet or an alert.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIAlertControllerStyle
type UIAlertControllerStyle = 
Inheritance
UIAlertControllerStyle
Attributes

Fields

ActionSheet 0

Displays the alert controller as an action sheet.

Alert 1

Displays the alert controller as an alert.

Remarks

This is how an action sheet is displayed:

This is how an alert is displayed:

Applies to