Search code examples
swiftxcodeipaduinavigationcontrollerstoryboard

Is there a way to show UINavigationController in the second storyboard if that UINavigationController in the first storyboard?


I have the first storyboard has UINavigationController its continues to the second storyboard but it doesn't appear there only when running the app.

I link between storyboard by (Storyboard Reference)

The first storyboard

The second storyboard

The UINavigationController doesn't appear in the second storyboard its appear only when running the app.


Solution

  • This is normal behaviour of the Storyboard as the controller in your second storyboard does not know if it is a controller in a navigation controller, hence it does not show the navigation bar. If yo want to show the navigation bar in the storyboard you can select it in the Simulated Metrics in the Attributes Inspector (shown here in that thread). You can see it working by giving the controller a title for example.