问题描述
我有一个简单的NavigationController基于应用程序。主窗口显示一个TableView并选择一个项目加载子视图。我使用Interface Builder来获取UI视图。
I have a simple NavigationController based app. The main window shows a TableView and selecting an item loads a sub-view. I used Interface Builder for UI views.
现在我想为应用程序添加TabBar。我在哪里放?我需要一个TabBarController?如果它进入MainWindow.xib或者RootViewController.xib?
Now I want to add a TabBar to the app. Where do I put it? Do I need a TabBarController? Should it go in the MainWindow.xib, or RootViewController.xib?
如何将它与我的NavigationController绑定?
How do I tie it together with my NavigationController?
推荐答案
此问题的答案在iPhone SDK文档中的 View Controller Programming Guide for iPhone 中提供。
The definitive answer to this question is presented in the iPhone SDK documentation in the View Controller Programming Guide for iPhone.
此链接直接转到该部分,并包含有关创建导航和基于标签栏的界面的正确方法的讨论。
This link goes straight to the section and includes a discussion of the correct ways to create navigation and tab bar-based interfaces.
这篇关于如何添加TabBar到基于NavigationController的iPhone应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!