0
votes

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.

2
What do you meant by empty? the nav bar doesnt show or what?Tj3n
I don't know what do you want?Nguyen Hoan
I want it to show the back button like usual @NguyenHoanBright
oh, embed the first screen in Navigation bar.Nguyen Hoan
@NguyenHoan the main view shouldn't have a navigation bar on topBright

2 Answers

0
votes

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.

0
votes

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.