In interface builder I changed the color of a UILabel to this screenshot, having Red 255, Green 159, Blue 0 and Opacity at 100%. which gives an orange color.


I programmatically change the UILabel color than change it back to the original color using this…
timeLabel.textColor = [UIColor colorWithRed:255.0 green:159.0 blue:0.0 alpha:1.0];
and it gives this color….

I thought it should be the same, does anyone know what I’m doing wrong?
please help, thanks.
1 Answer