我使用 XCode4 中的“Master Detail”模板创建了我的 IOS 5 项目。这个模板给你一个导航 Controller 。在某些时候,我意识到我想为这个应用程序添加一个标签栏。所以我想保留导航 Controller ,但我想添加标签栏。有人可以总结一下如何做到这一点,或者可以指导我找到一个很好的资源来研究如何做到这一点吗?
谢谢!
最佳答案
向导航 Controller 添加标签栏可能会导致您的应用程序被应用商店拒绝。来自设计指南:
When combining these two types of view controller in the same user interface, the tab bar controller always acts as the wrapper for the navigation controllers. You never want to push a tab bar controller onto the navigation stack of a navigation controller. Doing so creates an unusual situation whereby the tab bar appears only while a specific view controller is at the top of the navigation stack. Tab bars are designed to be persistent, and so this transient approach can be confusing to users.
应该将导航 Controller 添加到标签栏。
关于objective-c - IOS - 如何将选项卡栏添加到导航 Controller (主从模板)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9595416/