2

What is the max size of a UITabBarItem image?

2 Answers 2

16

From apple's UITabBarItem reference:

The item’s image. If nil, an image is not displayed. The images displayed on the tab bar are derived from this image. If this image is too large to fit on the tab bar, it is scaled to fit. The size of an tab bar image is typically 30 x 30 points. The alpha values in the source image are used to create the unselected and selected images—opaque values are ignored.

I hope it helps! good luck!

1
  • 1
    to compliment, see doc here
    – BabyPanda
    Commented Nov 16, 2012 at 7:13
6

It is not scaled but clipped. So remember to scale the image before using it.

The item’s image. If nil, an image is not displayed. The images displayed on the tab bar are derived from this image. If this image is too large to fit on the tab bar, it is clipped to fit. The size of a tab bar image is typically 30 x 30 points. The alpha values in the source image are used to create the unselected and selected images—opaque values are ignored.

Not the answer you're looking for? Browse other questions tagged or ask your own question.