简体   繁体   中英

RGB values for clear color in iphone?

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."

创建一个颜色对象,其灰度和alpha值均为0.0

UIColor *clearColor = [UIColor colorWithWhite:0.0/255 alpha:0.0];

只需使用:

[UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.0];                

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM