如何在编辑时更改UITableViewCell背后的颜色?

时间:2016-08-08 17:10:35

标签: ios swift uitableview

我有一个标准的UITableViewCell,其backgroundColor属性设置与tableView backgroundColor不同。正如您在图像中看到的那样,编辑时过冲的单元格部分未着色(白色)。

UITableViewCell editing overshoot

我已尝试设置

• cell.backgroundColor
• cell.contentView.backgroundColor
• cell.backgroundView with a UIView() set with a backgroundColor

似乎没有任何作用:(由于交替的颜色单元格(white,offWhite等),tableView不能是那种颜色。

编辑:tableView必须保持白色,因为它可能不是很满并且与UI匹配。

0 个答案:

没有答案
相关问题