What is the max size of a UITabBarItem image?
What is the max s开发者_开发知识库ize of a UITabBarItem image?
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!
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.
精彩评论