self.backgroundColor = [UIColor clearColor];
self.contentView.backgroundColor = [UIColor clearColor];
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]){
self.backgroundColor = [UIColor clearColor];
self.contentView.backgroundColor = [UIColor clearColor];
}
return self;
}
然后注意下在其它地方不要添加了颜色。