3

I am using two storyboards Main and StoryboardA. For Main.storyboard i have embedded a navigation controller. From Main.storyboard i need to go the storyboard StoryboardA. So for acheiving this i have given a storyboard reference. But the problem is i am not getting the back button on the StoryboardA . It seems the StoryboardA is presenting itself instead of getting pushed. Please see the below image: So My question is do we need to use another navigation controller for StoryboardA?

Main Storyboard: First Storyboard

Second Storyboard: Second Storyboard

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Chelsea Shawra
  • 1,593
  • 4
  • 22
  • 43

3 Answers3

1

I seem to have found a solution mired in all of these solutions for old versions of iOS and Xcode. In short, in your second storyboard, mark your first view controller as "Is Initial View Controller", not the navigation controller.

Your navigation controller will remain and still point to your first view controller. I wonder about downstream issues yet to appear but others seem to have had success.

Collierton
  • 539
  • 5
  • 10
0

Have you added segue as push ? On control click - > Select segue type as Push .It should work fine.

enter image description here

Ellen
  • 5,180
  • 1
  • 12
  • 16
0

You can use a RootViewController for many StoryBoards but you can use only one Storyboard for a NavigationController

Ragul
  • 3,176
  • 3
  • 16
  • 32