Question

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.

Was it helpful?

Solution

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?

OTHER TIPS

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.

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)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top