edelaney05
edelaney05

Reputation: 6997

What is the color used in Table View section head / footer text?

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.

Upvotes: 1

Views: 1443

Answers (3)

edelaney05
edelaney05

Reputation: 6997

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?

Upvotes: 1

kennytm
kennytm

Reputation: 523334

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)

Upvotes: 0

Paul Ardeleanu
Paul Ardeleanu

Reputation: 6700

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.

Upvotes: 0

Related Questions