I\'m trying to change the background color of UITableViewHeaderFooterView. Although the view is appearing, the background color remains the default color. I\'m getting a log
In iOS 7 contentView.backgroundColor worked for me, tintColor did not.
headerView.contentView.backgroundColor = [UIColor blackColor];
Though clearColor did not work for me, the solution I found is to set backgroundView property to transparent image. Maybe it will help someone:
UIGraphicsBeginImageContextWithOptions(CGSizeMake(1, 1), NO, 0.0);
UIImage *blank = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
headerView.backgroundView = [[UIImageView alloc] initWithImage:blank];