开发者

iOS: Why is the background black?

开发者 https://www.devze.com 2023-02-01 21:29 出处:网络
I am creating an an application for iPhone (based on the template for "utility application").

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?

iOS: Why is the background black?

iOS: Why is the background black?


Yes, look at your FlipsideViewController.m:

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor viewFlipsideBackgroundColor];      
}

The second line does the trick.

0

精彩评论

暂无评论...
验证码 换一张
取 消