在設(shè)置自定義的footerView里邊設(shè)置顏色的時候如果用self.backgroundColor會報錯:Setting the background color on UITableViewHeaderFooterView has been deprecated. Please use contentView.backgroundColor instead.
看到此處就知道了 :self.contentView.backgroundColor = [UIColor redColor];這個時候就可以看見成功設(shè)置了背景顏色