initWithRootViewController:
Initializes and returns a newly created navigation controller.
- (id)initWithRootViewController:(UIViewController *)rootViewController
Parameters
-
rootViewController
-
The root view controller that is pushed on the stack with no animation. It cannot be an instance of tab bar controller.
Return Value
Newly initialized navigation controller.
Discussion
This is a convenience method for initializing the receiver and pushing a view controller on its stack.
Availability
- Available in iPhone OS 2.0 and later.
Related Sample Code