Bohr icon indicating copy to clipboard operation
Bohr copied to clipboard

Add an option to change the BOTableViewSection appearance

Open animaonline opened this issue 9 years ago • 1 comments

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.

animaonline avatar Jan 26 '16 18:01 animaonline

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.

davdroman avatar Jan 29 '16 14:01 davdroman