how to resize iphone tab bar in xcode?

你离开我真会死。 提交于 2020-01-06 11:02:07

问题


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?

thanks


回答1:


You can't do this with the standard iOS tab bar. You need to create a custom one or use one of the numerous open source libraries that do it already.




回答2:


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



来源:https://stackoverflow.com/questions/15459161/how-to-resize-iphone-tab-bar-in-xcode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!