如果你项修改一下cell的颜色的话cell.contentView.backgroundColor = [UIColor redColor];
这样是没有问题的,但是如果你想把其修改成无色,那么就不可以了。
所以
为了改变单元格的背景色,你需要修改:
1 2 3 4 |
|
contentView 仅仅是建议 subview 放入自定义控件,这样单元格能在表格编辑时适当的布局。
时间: 2024-07-30 13:18:12
如果你项修改一下cell的颜色的话cell.contentView.backgroundColor = [UIColor redColor];
这样是没有问题的,但是如果你想把其修改成无色,那么就不可以了。
所以
为了改变单元格的背景色,你需要修改:
1 2 3 4 |
|
contentView 仅仅是建议 subview 放入自定义控件,这样单元格能在表格编辑时适当的布局。