0

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 vertically on the UITabBarItem ?

Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219

2 Answers2

0

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

Community
  • 1
  • 1
Ram Gandhi
  • 707
  • 8
  • 24
0

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.

PengOne
  • 48,188
  • 17
  • 130
  • 149