Making a thinner UITabBar

僤鯓⒐⒋嵵緔 提交于 2019-12-18 12:40:43

问题


I would like to be able to thin the UITabBar's height by removing each item's titles and reclaiming the vertical space they take up, a la Tweetie 2. This doesn't seem settable in the .xib or programmatically. Will I have to subclass the UITabBar and roll my own?


回答1:


Roll your own. I'm sure Tweetie 2's is custom; and the height is set in the handed down UITabBar.




回答2:


You can achieve a similar effect by placing a segmented control inside a uitoolbar. I did this and it looks quite nice.



来源:https://stackoverflow.com/questions/1563701/making-a-thinner-uitabbar

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