iOS 6单元格文本背景颜色

时间:2013-01-07 16:16:45

标签: text ios6 tableview cell background-color

在我的uitableViewcell中,我的文字上有背景颜色,我不知道如何删除它..有人可以帮助我吗?

enter image description here

我试过

cell.backgroundColor = [UIColor clearColor];
cell.opaque = NO;

但是没有工作

1 个答案:

答案 0 :(得分:1)

你试过了吗?

cell.textLabel.backgroundColor = [UIColor clearColor];
cell.textLabel.opaque = NO;

cell.detailTextLabel.backgroundColor = [UIColor clearColor];
cell.detailTextLabel.opaque = NO;