iOS Guides | Samples

MonoTouch.UIKit.UIModalPresentationStyle Enumeration

An enumeration of values used by UIViewController.ModalPresentationStyle

Syntax

[MonoTouch.ObjCRuntime.Native]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.WatchOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIModalPresentationStyle

Remarks

iPhones and iTouches should always use UIModalPresentationStyle.FullScreen. iPads may use any value.

Members

Member NameDescription
CurrentContextThe same UIModalPresentationStyle used by the view's parent UIViewController.
CustomManaged by a custom animator and an optional interative controller.
FormSheetCentered on and smaller than the screen.
FullScreenA UIModalPresentationStyle that encompasses the whole screen.
NoneA non-modal presentation or dismissal.
OverCurrentContextDisplay the modal content over only the parent view controller's content area.
OverFullScreenDisplay the modal content over the full screen on top of the current view hierarchy.
PageSheetSet to the height and width of the screen in portrait orientation.
PopoverDisplay the modal content in a popover view for horizontally regular environments, and in full screen mode for horizontally compact environments.

Requirements

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

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

See Also: Enum

Public Fields

CurrentContextUIModalPresentationStyle. The same UIModalPresentationStyle used by the view's parent UIViewController.
CustomUIModalPresentationStyle. Managed by a custom animator and an optional interative controller.
FormSheetUIModalPresentationStyle. Centered on and smaller than the screen.
FullScreenUIModalPresentationStyle. A UIModalPresentationStyle that encompasses the whole screen.
NoneUIModalPresentationStyle. A non-modal presentation or dismissal.
OverCurrentContextUIModalPresentationStyle. Display the modal content over only the parent view controller's content area.
OverFullScreenUIModalPresentationStyle. Display the modal content over the full screen on top of the current view hierarchy.
PageSheetUIModalPresentationStyle. Set to the height and width of the screen in portrait orientation.
PopoverUIModalPresentationStyle. Display the modal content in a popover view for horizontally regular environments, and in full screen mode for horizontally compact environments.