Is it possible to have UITabBarItem not having an image space on it?
I know it is optional to add an image on the UITabBarItem but in all cases, the text appears at the bottom of the Button in an ugly way.
So, my question is, is there a way to centralize the text v开发者_运维技巧ertically on the UITabBarItem ?
There is no way to do this directly. You can implement a work around by making an image that contains only the text you wish to display and using that as the image for the tab.
You can draw the image of the text at runtime and add it to the tabBarItem
's image
This will solve the I18N issue too.
Check out this link
Rob's Answer
精彩评论