
iPhone UINavigationController Tutorial Part 1 of 2 (outdated)
1 year ago
A tutorial illustrating using Interface builder to build an iPhone application using a UINavigationController. This application starts from scratch and follows Apple's quidelines of each view being a separate xib.
The approach in this tutorial is Interface Builder centric, rather than starting with code.
Part Two will share data between xibs.
OUTDATED **** OUTDATED *******
The approach in this tutorial is Interface Builder centric, rather than starting with code.
Part Two will share data between xibs.
OUTDATED **** OUTDATED *******
-
Vimeo: About / Blog / Developers / Jobs / Community Guidelines / Community Forums / Help Center / Site Map / Merchandise
/ Get Vimeo

Previous Week
the IBOutlet navigationController from the NavigationControllerAppDelegate to the navigationController in the MainWindow.xib which will be used for the Navigation after those are connected. It will no longer show a blank screen!
I'd like to do something just slightly different: I'd like to have the first screen be just a plain screen with a button (no NavigationController) so that when you click the button, it goes to a second screen which is a NavigationController screen.
I created a ViewController XIB for the second screen but it doesn't come with a delegate, which seems to be only at the top, application, level.
Is there a way I can connect the NavigationController to a plain ViewController without a delegate or, alternatively, is there a way to create a delegate within a ViewController XIB?
Thanks!
1. Open Mainwindow.xib.
2. Cick on the app delegate icon
3. Go to tools-->Connection Inspector
4. Find the variable that you just declared. (i.e the IBOutlet UINavigationController *navController) in this window in the Outlets section
5. Drag the connection to the NavigationController icon in the small window which says "MainWindow.xib"
That did it for me. And James thank you so much for this nice tutorial.
i want to do a similar thing..have the nav controller the second controller... the idea is how do i push the nav controller?
SecondViewController *varSecondViewController = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];
[[self navigationController] pushViewController:varSecondViewController animated:YES];
[varSecondViewController release];
Great tutorial...
screencast.com/t/VEsS9pFN
Just one question, i have XCode + IB 3.1, how is this practice outdated, can u plz explain