xmartlabs / XLForm

XLForm is the most flexible and powerful iOS library to create dynamic table-view forms. Fully compatible with Swift & Obj-C.
MIT License
5.77k stars 953 forks source link

Changing background color #999

Closed ajitam closed 1 year ago

ajitam commented 6 years ago

Hello, my first task was to change the background color of the form. I manage to do this with this code:

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
    tableView.backgroundColor = [UIColor whiteColor];
    tableView.tableHeaderView.backgroundColor = [UIColor whiteColor];
    return tableView.tableHeaderView;
}

Q1: Is there a better way to check table background (here I'm catching tableview every time header is rendered)

Q2: how do I change the background color of the XLFormRowDescriptorTypeSelectorPush view

halpz commented 6 years ago

I'm having this problem too!

ajitam commented 6 years ago

Dear XLForm owners,

I think it would be appropriate to remove sentence form the first page

Do not panic, we will continue maintaining and improving XLForm, obj-c rocks!!

if you are not planing to actively maintain and improve the project. People (like me) are making decisions (also) based on things like this.

ajitam commented 6 years ago

btw @halpz in the end I just created my own custom push view instead of using "out of the box" one