Reputation: 1806
a new problem has crept up for me.I want to set an image as a table's background.Its a grouped table view.im doing this using IB.
i set the background color property for the table view as clearcolor and placed tan image view in the view on which the table view is placed./it looks good on ib,but when the application is loaded the table has a white background.
im going nuts.:-(Help
Upvotes: 0
Views: 762
Reputation: 3982
Are you using a UINavigationController? If yes, I use this code:
self.tableView.backgroundColor = [UIColor clearColor];
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
self.navigationController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"nameOfYourImage.png"]];
I placed this code in the viewDidLoad method.
Upvotes: 1