Enumeration Case

UIModalPresentationOverCurrentContext

A presentation style where the content is displayed over another view controller’s content.

Declaration

UIModalPresentationOverCurrentContext

Discussion

Using this presentation style, the current view controller's content is displayed over the view controller whose definesPresentationContext property is YES. UIKit may walk up the view controller hierarchy to find a view controller that wants to define the presentation context. The views beneath the presented content are not removed from the view hierarchy when the presentation finishes. So if the presented view controller does not fill the screen with opaque content, the underlying content shows through.

When presenting a view controller in a popover, this presentation style is supported only if the transition style is UIModalTransitionStyleCoverVertical. Attempting to use a different transition style triggers an exception. However, you may use other transition styles (except the partial curl transition) if the parent view controller is not in a popover.

See Also

Presentations

UIModalPresentationAutomatic

A presentation style chosen by the system.

Beta
UIModalPresentationFullScreen

A presentation style in which the presented view covers the screen.

UIModalPresentationPageSheet

A presentation style that partially covers the underlying content.

UIModalPresentationFormSheet

A presentation style that displays the content centered in the screen.

UIModalPresentationCurrentContext

A presentation style where the content is displayed over another view controller’s content.

UIModalPresentationCustom

A custom view presentation style that is managed by a custom presentation controller and one or more custom animator objects.

UIModalPresentationOverFullScreen

A view presentation style in which the presented view covers the screen.

UIModalPresentationBlurOverFullScreen

A presentation style that blurs the underlying content before displaying new content in a full-screen presentation.

UIModalPresentationPopover

A presentation style where the content is displayed in a popover view.

UIModalPresentationNone

A presentation style that indicates no adaptations should be made.