ios tabbar put text in the middle when no image

Dany Y picture Dany Y · Sep 25, 2012 · Viewed 11.7k times · Source

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 ?

Thank you

Answer

Dany Y picture Dany Y · Sep 27, 2012

Got it!

[tab.tabBarItem setTitlePositionAdjustment:UIOffsetMake(0, -10)]