I have a `UIDatePicker` in an iOS 7 app. It's added to a view controller (subclass) and it shows up hardly readable because the background is black. (A date picker needs a light background.)

```
- (void)loadView
{
    self.datePicker = [[UIDatePicker alloc] init];
    ...
    [self.view addSubview:self.datePicker];

    // When placed here, without viewDidAppear, background remains black/transparent
    self.view.backgroundColor = [UIColor whiteColor];
}

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];

    // When places here, the background becomes indeed white.
    self.view.backgroundColor = [UIColor whiteColor];
}

```

I could of course set the background color of the date picker itself in `loadView`, and that's what I ended up doing.

But still I don't understand why setting the super view's background color in `loadView` did not work.