You should think of the navigation controller as a stack of navigation controllers, each of which controls a single screen full of information. You create a navigation controller with
-(id)initWithRootViewController:(UIViewController *)rootViewController
method. You specify the root view controller in this call. Then you add the navigation controller view as a subview to the window, as before.
If you want to show your second screen, you push another view controller on the stack using
-(void)pushViewController:detailViewController animated:YES
method.
source share