Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set Hex color code in xib in iOS

Tags:

xcode

ios

xib

I am not finding an option for Hex color code in xib color picker in xcode.

But I have seen in stack over flow answer, https://stackoverflow.com/a/27283783/4391112.

In this, image is having Hex color code option in color picker.

Xcode version : 6.1.1

How can i get that hex color code in color picker in xib.

Please suggest me.

Thanks

Update: Is there any plugin for xcode to select color in hexa color code. I am using xcode 6.1.1.

or is there any setting in xcode to change the colr in hexa code.

please help me guys

like image 461
iOS Avatar asked Feb 24 '15 16:02

iOS


2 Answers

Select Color Picker From Xib , then choose the RGB Slider from second option Color Slider , now you can Enter HEX color (Below RGB Slider) Codes or Select RGB Values from Sliders.

enter image description here

like image 75
Jitendra Avatar answered Oct 05 '22 18:10

Jitendra


xcode version 11.x

Within the view controller,

  • click on custom for background.
  • Click on the 3 line rgb sliders tab
  • Click Grayscale slider
  • Choose RGB Sliders

xcode version 11.4.1

enter image description here

like image 29
Roger Perez Avatar answered Oct 05 '22 19:10

Roger Perez