I am pushing a viewcontroller (using a .xib) using:
[self.navigationController pushViewController:detailViewController
animated:YES];
I have the background color set to black in Interface builder, but I still see the default iOS gray background when the app is running. The black color shows up in the Interface builder when I look at the .xib file.
Can someone please help?
Thanks.
I think you want to provide more information, like what your xib looks like, etc. Otherwise it's pretty hard to figure out what's wrong exactly. And I don't think iOS's default bg color is gray?
But you can set
self.view.backgroundColor = [UIColor blackColor];
in the viewDidLoad:
of your detailViewController
I guess.