问题
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