Colors set in Interface Builder are sometimes just wrong

Originator:Clarky07
Number:rdar://21693738 Date Originated:7/6/2013
Status:open Resolved:no
Product:xcode Product Version:6.3.1
Classification:serious Reproducible:sometimes
 
Summary:
If we set up the background color of views,buttons, etc on a storyboard the colors look slightly darker than the correct ones often; but setting the values via code shows the correct colors when running both on device and simulator.

Steps to Reproduce:
Set the background color of a view via Storyboard to RGB(0,159,242)
Compile and run; see the rendered color (take a screenshot).

The on viewDidLoad or wherever; even on the button’s action if you want to set the background color of the button to RGB(0,159,242) via code, compile and run and notice how the colors are render differently. (take a screenshot).

Open up Adobe CC or similar and then pickcolor both background colors and compare; notice how the values set via code match the correct RGB values but the color set on IB is off

Expected Results:
Setting the background color of a button via IB or code should show the exact same color.

Actual Results:
The colors when set via IB are slightly darker than when set via code.

Notes:
This is HIGHLY critical since we try most of the UI via IB and we set the RGB or HEX colors our designers send to us from PS directly into Xcode and the wrong colors are sometimes hard to perceive but overall WRONG and the tools should correctly render the values specified.

Steps to Reproduce:
1. set background color of a view to #FFFFD0
2. run the app
3. note that color is not #FFFFD0

Expected Results:
I expect the color set in IB to be the color I set.

Actual Results:
Sometimes it is not the same color that I set.

Version:
xcode 6.3.1 osx 10.10.3

Notes:
workaround is to set the color in code rather than interface builder

Configuration:
xcode 6.3.1 osx 10.10.3 late 2013 27 inch iMac

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!