Bright
Bright

Reputation: 5751

Navigation bar is empty, created from storyboard

This is my story board:

enter image description here

Whenever I jump to a view controller embedded in navigation controller, the navigation bar is shown but empty, why?

The sequence I created it is:

  1. connect buttons with destination view controllers
  2. embed destination view controllers in navigation view controller

And the segue I use is present modally - cross dissolve.

Upvotes: 0

Views: 151

Answers (2)

Bright
Bright

Reputation: 5751

I tested different segue transition methods with test projects, the answer I got is: if you are transitioning by presenting it modally, you don't get the back button, you only get it by push.

Upvotes: 0

Orange
Orange

Reputation: 59

The First root controllers of a navigation controller won't have any Back button attached to its navigation bar. You should add an additional View Controller next to any root View Controller of Navigation Controller with Push Segue ( or Show Segue for newer IOS ) to navigate between them.

Upvotes: 0

Related Questions