Possible Duplicate:
Change background of a grouped UITableView
I am not able to change the background color of UITableView if it is UITableViewStyleGrouped
.
My code :
[addressNewTbl setBackgroundColor:[UIColor redColor]];
Help!
You might need to add some code. Try -
[UITableView setBackgroundView: nil];
or you can also do :
UIView* bview = [[UIView alloc] init];
bview.backgroundColor = [UIColor yellowColor];
[tableView setBackgroundView:bview];
Both will work..
Did you try
addressNewTbl.backgroundView = nil;
[addressNewTbl setBackgroundColor:[UIColor redColor]];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With