objective-c - IOS - 如何将选项卡栏添加到导航 Controller (主从模板)?

标签 objective-c ios xcode

我使用 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/

相关文章:

ios - 无线更新 .stringsdict 本地化文件

ios - 使用核心数据和 swift 获取错误 "unrecognized selector sent to instance"

iOS 乱舞 : UI API called from background thread

iphone - 在 locationManager = nil 和 stopUpdatingLocation 调用后位置仍在监控

Ios:如何避免捕获过程中视频方向发生变化?

iphone - 不确定如何在使用 Storyboard时正确地子类化 UIApplication

ios - 在多个部分重用 UITableViewCell

ios - Realm 不支持 armv7s

ios - 在Facebook iOS中预填充评论字段

iphone - 敌人随机生成