开发者

RGB values for clear color in iphone?

开发者 https://www.devze.com 2023-02-15 06:56 出处:网络
开发者_如何学GoWhat 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
开发者_如何学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

精彩评论

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

关注公众号