0

I am trying to put an image that contains a text on UITabBarItem.

I went to our Graphics designer and asked him to create an image for me that contains a text "Summary".

He actually did. ( a png image).. but when I put inside the app, I saw a horrible look..

The Image: enter image description here

How it look in the app: enter image description here

Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219
  • 2
    You really should NOT put text on your `UITabBarButton`s, that's what the label is for. – esqew Oct 09 '11 at 13:39
  • Okey, good point. Put what if you don't have an icon that do represent the meaning of the tab button from the perspective of the customer? And at the same time the label is so small to put your text on it and let a big space freed over him? – Muhammad Hewedy Oct 09 '11 at 17:26

2 Answers2

1

To create an image for a tab bar or toolbar item, you or your designer must work in the image's alpha channel. The colors in the image don't matter at all, the OS only is interested in the alpha channel. In your case, the background of your image should be fully transparent instead of black.

Ole Begemann
  • 135,006
  • 31
  • 278
  • 256
0

It is absolutely possible for you to use custom colors and images instead of the ones provided to you by Apple's own UITabBarController. I used the code explained in this (really thorough) tutorial - works great.

Nightfirecat
  • 11,432
  • 6
  • 35
  • 51
yuvalz
  • 165
  • 2
  • 7