| Conforms to | |
| Framework | /System/Library/Framework/UIKit.framework |
| Availability | Available in iPhone OS 2.0 and later. |
| Declared in | UINavigationController.h |
| Related sample code |
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.
– navigationController:willShowViewController:animated:
– 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
The navigation controller that is showing the properties of a view controller.
The view controller whose view and navigation item properties are being shown.
YES to animate the transition; otherwise, NO.
UINavigationController.hSent 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
The navigation controller that is showing the properties of a view controller.
The view controller whose view and navigation item properties are being shown.
YES to animate the transition; otherwise, NO.
UINavigationController.h
Last updated: 2009-05-22