Düzenle

Aracılığıyla paylaş


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
UIModalPresentationStyle
Attributes

Fields

Name Value Description
None -1

A non-modal presentation or dismissal.

FullScreen 0

A UIModalPresentationStyle that encompasses the whole screen.

PageSheet 1

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

FormSheet 2

Centered on and smaller than the screen.

CurrentContext 3

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

Custom 4

Managed by a custom animator and an optional interative controller.

OverFullScreen 5

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

OverCurrentContext 6

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

Popover 7

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

BlurOverFullScreen 8

Blur the previous content and then overlay the new content.

Remarks

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

Applies to