How do I enter RGB values into Interface Builder?

Click on the color slider icon, and then choose "RGB Sliders" from the drop-down list You can also use the magnifying-glass as a color picker to pick up an exact color from anywhere on the screen.

Click on the color slider icon, and then choose "RGB Sliders" from the drop-down list. You can also use the magnifying-glass as a color picker to pick up an exact color from anywhere on the screen.

Thanks for the tip! Random question, what software did you use to write over that screenshot? Nice addition.

– Sheehan Alam Apr 2 '10 at 4:48 3 Actually, be careful with the magnifying glass. Just component numbers do not spec a color, you also need to know the colorspace. It's like string encodings.65 is the ASCII encoding of A.

The colorspace with which to encode/decode the components is in the little dropdown to the left of "RGB" sliders above. The "Generic RGB" colorspace corresponds to colors made with +NSColor colorWithCalibratedRed:green:blue:alpha:. If you use the magnifying glass, the components will be given with respect to "device" space which means the current screen.

This is not appropriate. Select generic after. – Ken Apr 2 '10 at 4:56 Oops, this question is for the iPhone.

The iPhone isn't colormatched. SRGB is probably the best approximation of its screen, so if you want to have component numbers appropriate for use with UIColor, select sRGB as the colorspace. – Ken Apr 2 '10 at 4:58 I used a Wacom Bamboo Fun writing tablet to write on the screenshot in Photoshop (Gimp works just as well for this).

Took the screenshot with command-shift-4, then space and clicked on the window. – Tyler Apr 2 '10 at 6:42 Has anyone experienced this: When I try to move the color sliders... they just pop back to their old position.(Everything works find if I type the values in directly, though. ) – Bonnie Apr 2 '10 at 18:49.

Check the above snap, in that go to Colors Tray, select the second button(RGB sliders(rectangle image) - which is placed next to circle on the top of the tray). In that you can enter RGB values.

It sounds like you're unfamiliar with the Mac OS X color panel. Click the tabs along the top of the color panel window to choose other pickers. Pickers are also plugins, so it's possible to add new UI for color selection.

See, for example, developer color picker.

I use this color picker to convert colors to NSColor/UIColor: panic.com/~wade/picker.

I have really weird problem with colors in interface builder. I set a color on one UI element, for example UIView, and then I want the same color on UIButton...but when I try to do so, colors are often different - I mean little bit different tone, not absolutely different color. How is this even possible?

I've tried to use RGB sliders, and other sliders, also that color picker tool... Only thing that helps me sometimes is, when I create new UI element. Anybody had the same problem and knows what's going on?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions