问题描述
我的标签栏只包含文本,没有图像.问题是文本总是显示在标签的底部,有没有办法将文本定位在中间?
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)]