iOS Guides | Samples

MonoTouch.UIKit.UIAlertControllerStyle Enumeration

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

Syntax

[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 8, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.Native]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.WatchOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIAlertControllerStyle

Remarks

This is how an action sheet is displayed:

This is how an alert is displayed:

Members

Member NameDescription
ActionSheetDisplays the alert controller as an action sheet.
AlertDisplays the alert controller as an alert.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIAlertControllerStyle are listed below.

See Also: Enum

Public Fields

ActionSheetUIAlertControllerStyle. Displays the alert controller as an action sheet.
AlertUIAlertControllerStyle. Displays the alert controller as an alert.