开发者

RGB values for clear color in iphone?

开发者_如何学Go

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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜