Possible Duplicate:
Change background of a grouped UITableView
如果 UITableView 的背景颜色是 UITableViewStyleGrouped
,我无法更改它的背景颜色。
我的代码:
[addressNewTbl setBackgroundColor:[UIColor redColor]];
救命!
最佳答案
您可能需要添加一些代码。 尝试-
[UITableView setBackgroundView: nil];
或者你也可以这样做:
UIView* bview = [[UIView alloc] init];
bview.backgroundColor = [UIColor yellowColor];
[tableView setBackgroundView:bview];
两者都可以工作..
关于iphone - 在 IOS 6 中设置 UITableView 的背景颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12617913/