0

I encountered a problem in my app.

I have to have a UINavigationBar in all my pages, and so I created a UINavigationController 'embed in' with my first page. So the UINavigationBar appears on it, but when I perform a segue from that first page (by instating a new view controller and presenting it) the navigation bar doesn't appear on the second view controller.

AlBlue
  • 23,254
  • 14
  • 71
  • 91
Karz
  • 557
  • 1
  • 6
  • 22

1 Answers1

0

Check your segue is presenting or pushing a second page.
Check out segue properties, If it's presenting by selection of 'Modal' on segue property of attribute inspector. On presenting view controller you won't get your Navigation bar.
You will get Navigation bar when you push a segue.

And If you want presenting animation on push using segue, You can go for custom segue.
Here is the link.
http://www.appcoda.com/custom-segue-animations/

Kiran Jasvanee
  • 6,362
  • 1
  • 36
  • 52