0
这是更改单元格背景颜色的最佳方法。这是我尝试的。表格单元格的背景颜色
cell.contentView.backgroundColor = [UIColor grayColor];
与上面的代码行的背景是灰色的,但文本有背景色。
我试过了下面的代码,但是文本不可见。
cell.textLabel.textColor = [UIColor clearColor];
cell.detailTextLabel.backgroundColor = [UIColor clearColor];
是用不同颜色的文字? – themis 2012-03-19 12:12:11
是的。文字颜色是黑色的。 – foho 2012-03-19 12:16:46
@Piyush Patel你建议不适合我的工作。 – foho 2012-03-19 12:18:03