Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Saphrosit

macrumors newbie
Original poster
Oct 10, 2010
12
0
Hi, I was trying to create a navigation-based app starting from a simple window-based app.
I noticed that if I create a new project as "Navigation-based application", XCode creates a default project in which the navigation controller loads the view from "RootViewController".
tmphn.png

How can I obtain the same effect in my window-based application?
I mean, I achieved to transform my wb application in a nb one, but the view loaded is "MainWindow.xib". This is my navigationController:
tmp1.png

I want it to load the view from another view controller (or another xib).

What I do not get is how can XCode tell to the navigation controller to load another view without saying explicitly in the code (or, at least, I did not find the point in which it does)...
 
You simply Drag new Navigation Controller to your WB in Interface builder, you will have 2 view controller by default in Navigation base controller. It's easy to target view controller in nav controller to any view u want by changing controller name and nib name of view controller.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.