UITableView's section headers are less identifiable in iOS 7. Are there any way to set the UITableView section header color in iOS 7 directly rather creating a new UIView.
Note: I found some solutions by creating a new UIView in,
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
but I really wanted to keep the Apple's properties except color. Are there any way to do it without this method.
Best Answer
Implement
tableView:willDisplayHeaderView:forSection:
and update the view that you are passed.(assuming that you supplied a
UITableViewHeaderFooterView
instance in your implementation fortableView:viewForHeaderInSection:
)