What color space are iOS devices used in?

When I use the MAC Digital Color Meter to determine the RGB color on the screen, the RGB values ​​can be displayed in sRGB, Adobe RGB, RGB source spaces, etc. And they are a little different.

I want to use these values ​​on the iOS Xcode platform and use the UIColor class to represent them, what color space should I choose in the digital color counter?

Thanks.

+7
source share
3 answers

iOS only supports device-specific color spaces . I heard that sRGB or Adobe RGB are closest to iPhone / iPad.

+4
source

iPhone definitely uses sRGB. See This Note on the CGColorSpace Reference page:

https://developer.apple.com/library/ios/documentation/graphicsimaging/reference/CGColorSpace/Reference/reference.html

+20
source

iPhone uses sRGB color space.

But for security reasons, I suggest you use CGColorSpaceCreateDeviceRGB() to create a color space instead of kCGColorSpaceSRGB

0
source

All Articles