如何在Xcode 4.3.1中调整选项卡栏项目的大小? [英] How do I resize the tab bar items in Xcode 4.3.1?
问题描述
我一直在寻找如何在制表栏控制器"上调整选项卡栏项目的大小,但是显然找不到任何东西.
I've been searching on how to resize the tab bar items on the "Tab Bar Controller," but obviously couldn't find anything.
之所以要这样做,是因为我正好有6个项目,并且只要您有6个或更多,它就会创建更多"项目.因此,底部显示4个项目,单击时显示另外两个项目的更多"项目.
The reason why I want to do this is because I have exactly 6 items, and it causes the "more" item to be created whenever you have 6 or more. So 4 items show up on the bottom and a "more" item that shows the other two items when clicked.
我所有商品的标题都很短,因此我想在下面紧压其中的6个商品,不要添加更多"字样,唯一的方法是缩小商品的宽度.如何调整每个项目的宽度?
My title for all my items are short, so I want to squeeze 6 of them right below without the "more" and the only way to do that is to shrink the items width. How can I resize the width of each item?
如果不清楚,请附加图片.
An Image is attached if I wasn't clear enough, thanks in advance.
推荐答案
UITabBarController不支持很多自定义,因此您需要自己编写或使用已经由他人编写的用于类似目的.您应该检查cocoacontrols.com和github,我确定已经有一些东西可以做到这一点,或者至少可以轻松修改.
The UITabBarController does not support much customizing, so you'll either need to write your own or use one that has already been written by someone else for a similar purpose. You should check cocoacontrols.com and github, I'm sure something already exists to accomplish this, or at least something you can easily modify.
这篇关于如何在Xcode 4.3.1中调整选项卡栏项目的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!