I'm using Xcode 4.6.1 to code on Objective-C. I want to know how can I keep the navigation bar shown when I create a modal segue between 2 View controllers, because I'm doing the segue in the storyboard and when I run the application the navigation bar of the second view controller disappears, and I have a done button on that bar but I can't see it.
Ios – Modal segue, navigation bar disappears
iosobjective cxcode4.6
Related Topic
- Ios – Rearranging Tab Bar Controller Order in StoryBoard
- Ios – Best practices for Storyboard login screen, handling clearing of data upon logout
- Ios – Add a UIView above all, even the navigation bar
- Objective-c – Dark shadow on navigation bar during segue transition after upgrading to Xcode 5.1 and iOS 7.1
- Ios – ‘Show’ segue in Xcode 6 presents the viewcontroller as a modal in iOS 7
Best Answer
Just add another
Navigation Controller
to your modal view controller. Follow the stepsModal View Controller
Editor menu
Embed In
Navigation Controller
Run the application. Now it should work perfectly.
Hope this solves your problem.