表视图 - 删除单元格不透明度

时间:2011-10-06 16:19:40

标签: iphone xcode interface-builder

我有一个tableView,黑色背景,不透明度为10%。那就是给它一个“盒装”外观,将它与视图的其余部分分开。出于某种原因,每个CELL也添加了一个半透明背景(在第二个屏幕截图中可见),每个文本字符串也添加相同的东西(如果你仔细观察,这在屏幕截图中可见)。

2

例如,请注意“Sandwich Hot Turkey”周围文本背后的文本是否比文本右侧更暗。

我如何摆脱每个细胞和每个细胞束?

1 个答案:

答案 0 :(得分:1)

尝试使用cell.textLabel.backgroundColor=[UIColor clearColor];cell.detailTextLabel.backgroundColor=[UIColor clearColor];

并尝试使用cell.contentView.backgroundColor=[UIColor clearColor];将单元格的内容设置为透明。