Simply, I have 2 views in interface builder, one is set to the color 99,99,99 using the RGB sliders in interface builder.
colorWithWhite
uses grayscale space, and a color of 99 in grayscale space doesn't map to a color of (99,99,99) in RGB space.
So in order to get the same result as in Interface Builder, you need to use RGB space. Replace your call to colorWithWhite with this:
[UIColor colorWithRed:99/255.0 green:99/255.0 blue:99/255.0 alpha:1.0]
I finally reached the fine-tuning stage of this app, and had to solve this issue, so, I searched and easily found the solution:
How do I enter RGB values into Interface Builder?
Illustration: