1
我现在遇到了个问题,如何使uitableview cell 的背景色填满整个cell ,以下是我的代码。但它不能正常工作、、、

图片显示:

http://www.flickr.com/photos/53054715@N05/4898445104/

如何在单元格视图中设置颜色填充?

我的代码在下面,但效果不佳。

cell.contentView.backgroundColor =[UIColor groupTableViewBackgroundColor];
cell.backgroundColor=[UIColor groupTableViewBackgroundColor];
cell.backgroundView.backgroundColor =[UIColor groupTableViewBackgroundColor];
cell.textLabel.backgroundColor = [UIColor groupTableViewBackgroundColor];
cell.detailTextLabel.backgroundColor = [UIColor groupTableViewBackgroundColor];
4

1 回答 1

0

有用!

  • (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { [tableView setBackgroundColor:[UIColor groupTableViewBackgroundColor]]; 返回 1;}
于 2010-08-16T23:20:33.310 回答