Skip to content
This repository has been archived by the owner on Aug 24, 2020. It is now read-only.

Add an option to change the BOTableViewSection appearance #40

Open
animaonline opened this issue Jan 26, 2016 · 1 comment
Open

Add an option to change the BOTableViewSection appearance #40

animaonline opened this issue Jan 26, 2016 · 1 comment

Comments

@animaonline
Copy link

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.

@davdroman
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants