iOS 解决在Storyboard中修改UITableViewCell背景色无效果的问题

来源:互联网 发布:JavaScript中slice 编辑:程序博客网 时间:2024/05/16 06:24

其实是修改cell的backgroundColor属性,不是contentView的backgroundColor哦~

//设置cell的背景色- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{    cell.backgroundColor = [UIColor clearColor];}


0 0
原创粉丝点击