Change background of a grouped UITableView

ios, uitableview

Solution

You additionally need to disable the background view of `_tableView`:

[_tableView setBackgroundView:nil];
 _tableView.backgroundColor = [UIColor redColor];

No need to add new view to backgroundView. This is working for me in `iOS6`.

Problem

I'm having some trouble trying to change the background of a UITableView with groups. ``` _tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"tableViewBg.png"]]; ``` This usually works on every other UITableView, but not the one with groups, is there something else I have to do? In IB I have the background color set to a clear color, but that doesn't do much.

Original source