IOS – 如何添加一个标签栏导航控制器(主细节模板)?

我使用XCode4中的“Master Detail”模板创build了我的IOS 5项目。 这个模板给你一个导航控制器。 在某个时候,我意识到我想为此应用程序添加一个标签栏。 所以我想保持导航控制器,但我想添加标签栏。 有人可以总结一下,如何做到这一点,或者可以指导我一个很好的资源,研究如何做到这一点?

谢谢!

将一个标签栏添加到导航控制器可能会导致您的应用程序被拒绝从应用程序商店。 从devise指南:

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. 

应该将导航控制器添加到选项卡栏中。