美文网首页
设置tableVIew的Footer背景颜色

设置tableVIew的Footer背景颜色

作者: 孤单雨凉 | 来源:发表于2017-09-01 10:32 被阅读48次

在设置自定义的footerView里边设置颜色的时候如果用self.backgroundColor会报错:Setting the background color on UITableViewHeaderFooterView has been deprecated. Please use contentView.backgroundColor instead.

看到此处就知道了 :self.contentView.backgroundColor = [UIColor redColor];这个时候就可以看见成功设置了背景颜色

相关文章

网友评论

      本文标题:设置tableVIew的Footer背景颜色

      本文链接:https://www.haomeiwen.com/subject/luphjxtx.html