Change background color of xib file?

I know this is the main question, but I go out when it comes to this ... I was able to change the background color using the xib user interface, but when I run the program, it does not change color and returns to the default color. Do I need to do anything other than a color change in the right column? enter image description here

Conclusion: enter image description here

+3
source share
2 answers

Are you creating APP from Utility Application Template?

if so, look in the FlipsideViewController.m file:

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

delete the second line!

+4
source

Actually, I think I found the answer. The method viewDidLoadI need to delete has default code. Can someone confirm this?

self.view.backgroundColor = [UIColor viewFlipsideBackgroundColor];

0
source

All Articles