iPhone OS Reference Library Apple Developer Connection spyglass button

UINavigationControllerDelegate Protocol Reference

Conforms to
Framework
/System/Library/Framework/UIKit.framework
Availability
Available in iPhone OS 2.0 and later.
Declared in
UINavigationController.h
Related sample code

Overview

The UINavigationControllerDelegate protocol defines methods a navigation controller delegate can implement to change the behavior when view controllers are pushed and popped from the stack of a navigation controller.

Tasks

Customizing Behavior

Instance Methods

navigationController:didShowViewController:animated:

Sent to the receiver just after the navigation controller displays a view controller’s view and navigation item properties.

- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated

Parameters
navigationController

The navigation controller that is showing the properties of a view controller.

viewController

The view controller whose view and navigation item properties are being shown.

animated

YES to animate the transition; otherwise, NO.

Availability
See Also
Declared In
UINavigationController.h

navigationController:willShowViewController:animated:

Sent to the receiver just before the navigation controller displays a view controller’s view and navigation item properties.

- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated

Parameters
navigationController

The navigation controller that is showing the properties of a view controller.

viewController

The view controller whose view and navigation item properties are being shown.

animated

YES to animate the transition; otherwise, NO.

Availability
See Also
Declared In
UINavigationController.h

Last updated: 2009-05-22

Did this document help you? Yes It's good, but... Not helpful...