What is the RGB value for UITableViewCellSelectionStyleGray?

What is the RGB value for UITableViewCellSelectionStyleGray? HEX value is also evaluated.

+5
source share
2 answers

Using Pixie (an application available at the Downloads For Apple Developers Center under Downloads For Apple Developers โ†’ Graphics Tools For Xcode ) and fetching a UITableViewCell display in the selected state with the selectionStyle property set to UITableViewCellSelectionStyleGray , sRGB values โ€‹โ€‹were 0.85 for red , green and blue .

Multiplying by 255 (conversion to RGB) gives 216.75 for each. Using the RGB-to-HEX Conversion tool at http://www.javascripter.net/faq/rgbtohex.htm and entering 217 gives the hexadecimal value of D9D9D9 .

+5
source

Found a message that exactly matches UIColor implemented by Apple for UITableViewCellSelectionStyleGray :

 UIColor* selectedColor = [UIColor colorWithRed:217.0/255.0 green:217.0/255.0 blue:217.0/255.0 alpha:1.0]; 

Original post can be found here.

+2
source

Source: https://habr.com/ru/post/1208353/


All Articles