Instance Method

navigationControllerPreferredInterfaceOrientationForPresentation(_:)

Returns the preferred orientation for presentation of the navigation controller, as determined by the delegate.

Declaration

optional func navigationControllerPreferredInterfaceOrientationForPresentation(_ navigationController: UINavigationController) -> UIInterfaceOrientation

Parameters

navigationController

The navigation controller

Return Value

The preferred orientation for presenting the navigation controller.

See Also

Supporting Custom Transition Animations

func navigationController(UINavigationController, interactionControllerFor: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning?

Called to allow the delegate to return an interactive animator object for use during view controller transitions.

func navigationControllerSupportedInterfaceOrientations(UINavigationController) -> UIInterfaceOrientationMask

Returns the complete set of supported interface orientations for the navigation controller, as determined by the delegate.