开发者

iPhone dev - Where is the navigation controller in a navigation-based app template?

I'm confused about the Navigation-based app template. Does it not provide you with a UINavigationController? Because RootViewController is a UITableViewController, so what do I use as the navigation controller? (where do I actually do the pushing?) Do I have to make my own navigationController? Where should I make it? And why would something called a Navigation-based app not provide you with a navigation controller? I'm ver开发者_如何学Pythony confused. Thanks for any help


It's in the MainWindow.xib On code, it will be connected to the IBOutlet in your AppDelegate. In applicationDidFinishLaunching this will be added and made as the key window.


Navigation controller is added on mainWindow.xib and connected through an IBOutlet in appDelegate class. in applicationDidFinishLaunching method navigation controller'v view is added to window. Navigation controller has one view controller which is assigned class named rootViewcontroller and assigned a nib named rootviewcontroller. you can see by opening and inspectind mainwindow.xib.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜