0

I have a UITableView with a number of sections. The are defaulted to the blue color, I would like to change it to another color.

How does one do this? I can only see where to set the name of the title for the section, but not the color.

some_id
  • 29,466
  • 62
  • 182
  • 304
  • Similar question to http://stackoverflow.com/questions/8413436/change-uitable-section-backgroundcolor-without-loosing-section-title – JiaYow Feb 23 '12 at 20:20

1 Answers1

1

You'll need to provide a custom header view for each section with – tableView:viewForHeaderInSection: on the table view delegate.

smparkes
  • 13,807
  • 4
  • 36
  • 61