问题描述
我最近升级到 xcode 4.我的应用程序使用 tabbarcontroller.在旧的 xcode 3.x 中,您可以根据此屏幕截图将选项卡更改为不同类型:
I recently upgraded to xcode 4. My application utilizes tabbarcontroller. In old xcode 3.x, you were able to change the tabs to different types per this screenshot:
根据我在研究此问题时收集到的信息,xcode 4 不再提供此功能.我错过了什么吗?根据我的研究,我们现在假设删除/添加选项卡,然后更改属性以获得所需的效果.因此,为此在 xcode 4 中,我添加了一个新选项卡项并使该类成为 UINavigationController 完全期望能够使用复选框切换显示导航栏".但是,导航控制器"分组从未出现.我错过了什么?
From what I gather in researching this issue, xcode 4 no longer offers this functionality. Am I missing something? From what I researched we are now suppose to delete/add tabs then change attributes to get the desired effect. So, to that end in xcode 4, I've added a new tab item and made the class a UINavigationController fully expecting the ability to toggle the "Shows Navigation Bar" with a checkbox. But, the "Navigation Controller" grouping never appears. What am I missing?
感谢您的帮助.
推荐答案
一开始我也很惊讶,正要问同样的问题.但是,当您打开对象库时,在底部您可以看到一个大星星,Tab Bar Item".只需将其拖到标签栏,您就会注意到标签栏控制器中添加了一个新项目.
I was surprised at first too and I was about to ask the same question. But, when you open the Object Library, in the bottom you can see a big star, "Tab Bar Item". Just drag that to the tab bar and you will notice a new item added to the tab bar controller.
这篇关于在 xcode 4 中更改了 uitabbarcontroller的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!