tags:

views:

1072

answers:

2

Hi,

I want to highlight one of the titles in grouped section, just like the Calendar application. I am trying to use UILabel as the return view in viewForHeaderInSection. But I am not sure what color is in the default heder. Does anyone know? Thanks a lot.

A: 

Just ran across this one myself -- rather a late response, but in case somebody else runs across it, this worked for me:

[label setBackgroundColor:[tableView backgroundColor]];

where, of course, label is the UILabel * that you're using for your header view. Rather than hardcoding a color, just use whatever background color the table view itself is using.

jgarbers
A: 

This comes very close:

[UIColor colorWithRed:.6 green:.65 blue:.69 alpha:.9]

You'd need to design a custom view to emulate the gradient and the bottom border.

grahamparks