What is RGB and alpha value for clear color? i want to do it programmatic, don't need [UIColor clearColor]...??
To represent clear color in rgb format one may use
'rgba(0,0,0,0)'
It just includes the alpha value.
According to the Documentation:
"Returns a color object whose grayscale and alpha values are both 0.0."
Just use:
[UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.0];
Create a color object whose grayscale and alpha values are both 0.0
UIColor *clearColor = [UIColor colorWithWhite:0.0/255 alpha:0.0];
精彩评论