in iOS 6
[uitableview setBackgroundColor:] not setting the color when table style is UITableViewStyleGrouped
instead the default striped background is seen.
How should we set the background of the table if the style is UITableViewStyleGrouped
[tableViewInstance setBackgroundView: nil];
Setting
[tableView setBackgroundView: nil];
gives me problems in iOS 5 so what I use is:
UIView* bview = [[UIView alloc] init];
bview.backgroundColor = [UIColor yellowColor];
[tableView setBackgroundView:bview];
iOS 5 and 6 compatible!
self.view.backgroundColor = TTSTYLEVAR(mainPageBackground);
self.tableView.separatorColor = TTSTYLEVAR(mainPageBackground);
self.tableView.backgroundView = nil;
Fixed it for me. You'll have to be careful of what other impacts this might have though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With