如何在xcode中调整iphone标签栏的大小? [英] how to resize iphone tab bar in xcode?

查看:41
本文介绍了如何在xcode中调整iphone标签栏的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个在标签栏中有 5 个项目的 iOS 应用程序.但它们的分布并不均匀.我希望最右边的一个更大,显然它需要更多的空间.和其他 4 个标签项可以均匀分布.我做了一些研究,但找不到好的解决方案.在哪里可以自定义标签栏?

I'm developing an iOS app that has 5 items in the tab bar. But they are not evenly distributed. I want the right-most one to be larger and obviously it takes more spaces. and other 4 tab items can evenly distribute. I've done some research but cannot find a good solution. Where can i customize the tab bars?

谢谢

推荐答案

您可以使用 UISegmentedControl.它是高度可定制的,并允许修改其中每个项目的宽度.

You can use UISegmentedControl. It is highly customizable and allows to modify width of each item in it.

这篇关于如何在xcode中调整iphone标签栏的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆