iOS: Why is the background black?
I am creating an an application for iPhone (based on the template for "utility application"). Using interface builder, I have created a settings view as sh开发者_如何学Pythonown below. The gray background is an UIView with gray background color. But when I run the app, the background becomes black!
Can someone explain why?
Yes, look at your FlipsideViewController.m:
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor = [UIColor viewFlipsideBackgroundColor];
}
The second line does the trick.
精彩评论