开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜