当没有图像时,ios tabbar将文本放在中间 [英] ios tabbar put text in the middle when no image
本文介绍了当没有图像时,ios tabbar将文本放在中间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的标签栏只包含文字,没有图片。
问题是文字始终显示在标签的底部,有没有办法将文字放在中间?
My tabbar consists only of text, no images.
The problem is that the text always show on the bottom of the tab, is there a way to position the text in the middle ?
谢谢
推荐答案
知道了!
[tab.tabBarItem setTitlePositionAdjustment:UIOffsetMake(0,-10)]
这篇关于当没有图像时,ios tabbar将文本放在中间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文