I have following code which works fine in iPhone application but in iPad I always get grey/light blue background colour. Even if I change background colour it does not take effect.
[self.tableView setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"bg1024x768.png"]]];
Thanks
Here's the magic:
if ( [self.myTableView respondsToSelector:@selector(backgroundView)] )
self.myTableView.backgroundView = nil;
self.myTableView.backgroundColor = [UIColor clearColor];
Also, use UIViewController with a UITableView, not UITableViewController, and place your background image in a UIImageView placed under the UITableView.
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