Navigation bar disappeared from my storyboard items

From one day to another the navigation bar disappeared from my storyboard items in XCode 4.6.2. I can't restore them (cleaning, rebuilding, closing, reopening etc)

When running my app on my device or in simulator, everything works ok, the navigation bar is there. But I need them on my storyboard during design time, I have buttons, labels there those must be changed now. (pls. don't advise to do it from code, I want to do it on the storyboard graphically, I think that's why it is there)

How can I get my navigation bars back? I hope the solution won't be to delete/do them again as I read in some places, because I have dozens of navigation controllers.

Thanks in advance!


Solution 1:

Try this:

Select the view controller with the missing navigation bar and view the attributes inspector (This is the fourth tab over in the right side window). Under the simulated metrics section, change the "Top Bar" from the default "inferred" to "Navigation Bar".

Hopefully that solves your problem.

Solution 2:

Specifically for xcode 6, under the simulated metrics section (fourth tab on the right window), under the "Top View" dropdown, pick the "Translucent Navigation Bar" to get the default nav bar.

Solution 3:

For me I just command-A and copy, delete all view controllers, then paste back in, and it worked.

Solution 4:

I had a similar problem when I changed "is initial view controller" from one view/navigation controller to another within the main storyboard. I, in error, set the view controller and not the navigation controller as initial view controller. Wasted a fair bit of time on a simple mistake.