How to recreate the UITabBarItem image filter?

Posted by boliva on Stack Overflow See other posts from Stack Overflow or by boliva
Published on 2010-09-24T03:58:03Z Indexed on 2011/03/20 16:09 UTC
Read the original article Hit count: 240

Filed under:
|
|
|

Hi,

I'm writing a custom UITabBar replacement, and I would like to know how to recreate the filter that the built-in implementation does with the UITabBarItem image - that blue shining on selected tabs and gray gradient on unselected ones. I guess it's a matter of using the source image alpha value as a mask and overlay it with a pre-made blue (or whatever color) shining image and another one grayed out, but I would like to know what is the best approach from a code point of view.

Best,

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa-touch