开发者

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?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜