UIModalPresentationStyle UIModalPresentationStyle Enum

Definition

An enumeration of values used by ModalPresentationStyle

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIModalPresentationStyle
type UIModalPresentationStyle = 
Inheritance
UIModalPresentationStyleUIModalPresentationStyle
Attributes

Fields

BlurOverFullScreen BlurOverFullScreen 8

Blur the previous content and then overlay the new content.

CurrentContext CurrentContext 3

The same UIModalPresentationStyle used by the view's parent UIViewController.

Custom Custom 4

Managed by a custom animator and an optional interative controller.

FormSheet FormSheet 2

Centered on and smaller than the screen.

FullScreen FullScreen 0

A UIModalPresentationStyle that encompasses the whole screen.

None None -1

A non-modal presentation or dismissal.

OverCurrentContext OverCurrentContext 6

Display the modal content over only the parent view controller's content area.

OverFullScreen OverFullScreen 5

Display the modal content over the full screen on top of the current view hierarchy.

PageSheet PageSheet 1

Set to the height and width of the screen in portrait orientation.

Popover Popover 7

Display the modal content in a popover view for horizontally regular environments, and in full screen mode for horizontally compact environments.

Remarks

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

Applies to