My background color is white! Why?
Just start an new View-based app for iPad and set background color in viewDidLoad.
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor = [UIColor groupTableViewBackgroundColor];
}
What is wrong. If I set it to redColor it works. Why?
groupTableViewBackgroundColoron the iPad (or at least on an iPad with iOS 4.2) is the same asclearColor, rather than the pattern used on the iPhone. You can create a “color” with your own background pattern using UIColor’scolorWithPatternImage:method.