iphone - Create adjusted image similar to UIButton's adjustsImageWhenHighlighted effect -
iphone - Create adjusted image similar to UIButton's adjustsImageWhenHighlighted effect -
i'm working info icons in table view. , icons in disabled state. want seek create grayed versions of icons programmatically, before inquire designer me. similar adjustment happens in uibutton when image auto-adjusted highlighted state. know how image adjustment?
what modifying alpha of icons?
if create images partly transparent you'll similar effect , no programming needed.
another possibility add together partially transparent grayness uiimageview on button. button made gray-looking -- you'll need uiimageview have alpha of .2, or somewhere in range.
iphone ios cocoa-touch uikit core-graphics
Comments
Post a Comment