interface-builderxcode4.6

Change UIView's background color like this *FFFFFF*


On Facebook iOS SDK Docs It reads:

Add the personal information to the SCViewController that displays when the user logs in. Make these changes in SCViewController.xib:

View: In the File Inspector settings, turn off ''Use Autolayout''.

View: Change the main view's background color to FFFFFF.

Question is, In IB, from where can change color of view like this (specifying value). All I know is changing color by using its default picker.

Sorry for the noob Question.


Solution

  • Whoever wrote this documentation at Facebook wasn't looking closely at the Xcode color picker (and you should file a bug and/or notify them of this fact).

    First, you need to convert the hex web color into RGB values, which you can do using some utility or site. Here's one: Color Converter at Yellowpipe

    And once you have your RGB values, you can then enter these into the Interface Builder portion of your main view, which looks like this (+1 to Tyler for his answer):

    How to choose a color by RGB in Interface Builder.
    (source: bynomial.com)