Protocol

UINavigationControllerDelegate

Use a navigation controller delegate (a custom object that implements this protocol) to modify behavior when a view controller is pushed or popped from the navigation stack of a UINavigationController object.

Declaration

@protocol UINavigationControllerDelegate

Overview

Topics

Responding to a View Controller Being Shown

- navigationController:willShowViewController:animated:

Called just before the navigation controller displays a view controller’s view and navigation item properties.

- navigationController:didShowViewController:animated:

Called just after the navigation controller displays a view controller’s view and navigation item properties.

Supporting Custom Transition Animations

- navigationController:animationControllerForOperation:fromViewController:toViewController:

Called to allow the delegate to return a noninteractive animator object for use during view controller transitions.

- navigationController:interactionControllerForAnimationController:

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

- navigationControllerPreferredInterfaceOrientationForPresentation:

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

- navigationControllerSupportedInterfaceOrientations:

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

Constants

UINavigationControllerOperation

These constants define the type of navigation controller transitions that can occur.

Relationships

Inherits From

See Also

Customizing the Navigation Interface Behavior

delegate

The delegate of the navigation controller object.