Bohr
Bohr copied to clipboard
Add an option to change the BOTableViewSection appearance
In order to change the background and font colors of a section I need to use this workaround:
- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section{
// Background color
view.tintColor = [UIColor blackColor];
UITableViewHeaderFooterView *header = (UITableViewHeaderFooterView *)view;
[header.textLabel setTextColor:[UIColor whiteColor]];
}
It should be handled by the appearance proxy.
The font color of a header/footer can be changed through the headerTitleColor
/footerTitleColor
properties of each BOTableViewSection
and its appearance proxy as well. Background colors can't be changed though, so I guess it'd be worth adding headerBackgroundColor
and footerBackgroundColor
properties.