Re: How to scale a TabBarItem Image
Re: How to scale a TabBarItem Image
- Subject: Re: How to scale a TabBarItem Image
- From: Steve Christensen <email@hidden>
- Date: Wed, 26 Jan 2011 07:31:46 -0800
On Jan 26, 2011, at 3:10 AM, ico wrote:
> Everything is fine except that my images for UITabBarItem is not scale to fit the item size to be displayed properly. As
> it should be as described in the UITabBarItem documentation:
> *image*
>
> 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.
>
> How to fix this problem?
Glenn has already addressed proper usage of a tab bar.
As for the images themselves, I'm unsure what your problem is. Are you trying to figure out how to scale the image to fit? Or are you trying to figure out how to make your images display correctly, given that tab bar items only look at an image's alpha channel and ignore the color components?
steve
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden