views:

48

answers:

3

This muted blue grey color is all over the place, and I can't find a convenience color that looks even remotely close. Clearly I'm missing something obvious...

I'm trying to "fake" a stock look for a UIView that is my section footer for a UITableView. Has anyone else had any luck?

My UILabel will also need a white drop shadow.

A: 

I believe the color used is [UIColor darkGrayColor].

Also, you can create your custom headers using

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section

in the table view delegate.

Paul Ardeleanu
Nope... not blue enough: http://yfrog.com/5t6v3p (and I'm trying to avoid doing customer headers, since they are "good enough")
edelaney05
Sorry, got confused. The RBG is (76,86,108). Also it has a white shadow with a vertical shift of 1px.
Paul Ardeleanu
[UIColor colorWithRed:76/255.0 green:86/255.0 blue:108/255.0 alpha:1.0]
Paul Ardeleanu
How are everyone's RGB values so different? I got R:59 G:68 B:90 !
edelaney05
A: 

Since you have already taken a snapshot, you could use a color picker to get the colors.

  • header: (0.37, 0.40, 0.52)
  • footer: (0.28, 0.36, 0.64)
KennyTM
Close... but too blue: http://yfrog.com/5ty4sp
edelaney05
@edelaney05: See update.
KennyTM
A: 

I'm not sure how Apple takes the RGB values and converts them to float (it would seem it's not a simple VALUE / 255), but the values that I got which when using the eyedropper in Photoshop gave the same RGB values were:

[UIColor colorWithRed:0.3025 green:0.3375 blue:0.425 alpha:1]

The other piece that has blown my mind, is that everyone got different RGB values! How does that happen?

edelaney05