views:

272

answers:

1

Hi,

I would like to copy colors between elements in the interface builder or define them using RGB values.

I.e. copy the background color of a button to another button without duplicating the button.

Or: Enter an exact RGB code using the interface builder.

Currently I can do this only programmatically but the interface builder is meant to design the GUI, so there must be such possibilities.

Thank you all in advance for your answers.

+3  A: 

To set RGB value in IB you should

  1. Click on corresponding element in Inspector window to invoke "Colors" dialog (e.g. Background color, text color etc)
  2. On the toolbar choose the "Sliders" icon
  3. Choose "RGB Sliders" in combo box.

Now you should be able to set RGB values for the color.

Sorry, I don't know if it is possible to copy color values between different elements easily...

Vladimir
this was too easy! i was looking for this option for so long and never found it, thank you very much!
favo