我使用XCode4中的“Master Detail”模板创建了我的IOS 5项目。此模板为您提供导航控制器。在某些时候,我意识到我想在此应用程序中添加一个标签栏。所以我想保留导航控制器,但我想添加标签栏。有人可以总结一下如何做到这一点,或者可能指导我一个好的资源来研究如何做到这一点?
谢谢!
答案 0 :(得分:3)
向导航控制器添加标签栏可能会导致您的应用程序被应用商店拒绝。从设计指南:
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.
应将导航控制器添加到标签栏中。