Which color space the iOS devices is used?
Solution 1
iOS itself only supports device-dependent color spaces. I've heard that sRGB or Adobe RGB is closest to the iPhone/iPad display.
Solution 2
iPhones definitely use sRGB. See this note on the page for CGColorSpace Reference
:
https://developer.apple.com/documentation/uikit/uicolor?language=objc#1968626
Solution 3
iPhone uses sRGB color space.
But for safety reasons, I suggest you use CGColorSpaceCreateDeviceRGB()
to generate the color space instead of kCGColorSpaceSRGB
flypig
Updated on July 27, 2022Comments
-
flypig almost 2 years
When I use the MAC Digital Color Meter to detect the RGB color of the screen, the RGB values can be shown in sRGB, Adobe RGB, original RGBs spaces, etc. And they are slightly different.
I want to use these values in the iOS Xcode platform, and use
UIColor
class to represent them, which color space should I choose in the Digital Color Meter?Thanks.
-
Cutterpillow about 8 years+1 The relevant quote from that link: "iOS does not support ColorSync, so all assets should be provided in the native device color space: sRGB."
-
Pang about 6 yearsLink in answer is dead - "Sorry, that page is currently unavailable."
-
Max almost 6 yearsNew link developer.apple.com/documentation/uikit/…. "These device color spaces correspond closely to the display characteristics of the sRGB color space."
-
joan over 4 yearsNo longer true. See medium.com/@volbap/… "Whereas, newer Apple devices, such as the iPhone X, use a bigger color space that covers a wider gamut of colors, the Display-P3 standard (or, just P3 for short)"