设置tableVIew的Footer背景颜色

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

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

你可能感兴趣的:(设置tableVIew的Footer背景颜色)