What is the default TableView section header background color on the iPhone?
For Change background Color of TableView Header Section Just One Line stuff
add TableView
delegate willDisplayHeaderView
:
- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section {
UITableViewHeaderFooterView *header = (UITableViewHeaderFooterView *)view;
**header.tintColor = [UIColor whiteColor];**
}
Objective-C:
[UIColor colorWithRed:232/255.0f green:233/255.0f blue:237/255.0f alpha:1.0f]
Swift:
UIColor(red: 232/255, green: 233/255, blue: 237/255, alpha: 1)
The default tableview section header background color for ios7 is
Objective-C
[UIColor colorWithRed:247/255.0f green:247/255.0f blue:247/255.0f alpha:1.0f]
Swift
UIColor(red: 247/255, green: 247/255, blue: 247/255, alpha: 1)