uitableviewcell背景颜色

1、tableView.backgroundColor = [UIColor clearColor];

2、self.backgroundColor = dGray;(uitableviewcell)

注:

如果设置为self.contentView.backgroundColor = dGray;没有效果,

如果设置为self.backgroundColor = [UIColor clearColor];没有效果

#define dGray [UIColor colorWithHexString:@"0xeeeeee" andAlpha:1]

开始是cell中设置contentview.backgroundColor = [uicolor clearColor];不行

原文地址:https://www.cnblogs.com/huoxingdeguoguo/p/5674497.html