I'm working with some data icons in table view. And sometimes my icons is in disabled state. I want to try create grayed versions of my icons programmatically, before I ask designer to do that for me. Similar adjustment happens in UIButton when image auto-adjusted for highlighted state. Does anyone know how to do that image adjustment?
Asked
Active
Viewed 738 times
1 Answers
0
What about just modifying the alpha of the icons?
If you make the images partly transparent you'll get a similar effect and no extra programming is needed.
Another possibility is to add a partially transparent gray UIImageView over the button. The button will essentially be made gray-looking -- you'll need the UIImageView to have an alpha of about .2, or somewhere in that range.

Nathan S.
- 5,244
- 3
- 45
- 55
-
image become less visible instead gray-and-white. i think i need some way with extra programming. :) – Evgen Bodunov Jan 24 '12 at 14:58
-
@EvgenBodunov Can you supply images of what you want before and after? Being lazy, I would look for the simplest way to do it. (See my edited answer.) – Nathan S. Jan 25 '12 at 20:23
-
I found a good answer at http://stackoverflow.com/q/4681903/241482 Thanks for your help anyway. – Evgen Bodunov Feb 15 '12 at 14:53