Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pashik

macrumors member
Original poster
Jul 16, 2008
43
0
Hi.
I have code to decrease alpha:

Code:
UIColor* icolor = [_parent color];
if(icolor)
{
 CGFloat alpha = CGColorGetAlpha([icolor CGColor]);
_color = [[icolor colorWithAlphaComponent:alpha*0.75] retain];
}

I found only initWithHue method but it is used to initialize new color and not change current color

How i can make color _color 10% darker?
thanx
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.