I am developing application for iPhone and iPad both, its working fine in iPhone but for iPad it gives this full gray background color, while I want full blue background color. I am using two xib files and doing this in code. I works fine with iphone but not with ipad.
- (void)viewDidLoad {
[super viewDidLoad];
[[NSBundle mainBundle] loadNibNamed:@"LoginHeaderViewController" owner:self options:nil];
self.tableView.tableHeaderView = tableHeaderView;
[[NSBundle mainBundle] loadNibNamed:@"LoginFooterViewController" owner:self options:nil];
self.tableView.tableFooterView = tableFooterView;
self.view.backgroundColor = [UIColor colorWithRed: (66.0/255) green: (142.0/255) blue: (189.0/255) alpha: 1.0];
}
I even put these lines In above code then It gives the below pic result otherwise it show all gray background.
tableHeaderView.backgroundColor = [UIColor colorWithRed: (66.0/255) green: (142.0/255) blue: (189.0/255) alpha: 1.0];
tableFooterView.backgroundColor = [UIColor colorWithRed: (66.0/255) green: (142.0/255) blue: (189.0/255) alpha: 1.0];

Try this :