I tried to implement the
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
to get the text label of the header in section of black color instead of the white color, but it looks so different from the default one created by the SDK, mine is so ugly.
How to recreate the UIView with exactly the same as the one from the SDK?
From Apple documentation:
Discussion
The table view uses a fixed font style for section header titles. If you want a different font style, return a custom view (for example, a UILabel object) in the delegate method tableView:viewForHeaderInSection: instead.
Although this is not exactly right, I’m posting this in hopes that someone can improve upon my approach. The text is right (white like default, but you can change that). The background gradient and opacity are not perfect (too light??)–some tweaking here might be needed.
Get the sectionheaderbackground.png here: http://img5.imageshack.us/img5/6616/sectionheaderbackground.png