I've been using a color that I chose with a color picker in Xcode. I need to use that color programmatically now, but I don't know its hex code.
Is there a way to see it in Xcode?
I'm using Xcode 4.2.
As of Xcode 6, users can view both RGB, CMYK, HSB and the Hex value as shown below. (No need for conversion)
Assuming you are talking about picking color in xcode interface builder, the answer can be obtained in 2 steps:
Step 1: Get RGB values by following this link.
Step 2: Convert that to hex code by following this link
write this in .m file
1.NSLog(@"color is %@",picker.color);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With