Modal segue, navigation bar disappears

前端 未结 11 1202
既然无缘
既然无缘 2020-12-01 04:30

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 do

11条回答
  •  故里飘歌
    2020-12-01 04:47

    Just add another Navigation Controller to your modal view controller. Follow the steps

    1. Select the Modal View Controller
    2. Go to Editor menu
    3. Select Embed In
    4. Select Navigation Controller

    Run the application. Now it should work perfectly.

    Hope this solves your problem.

提交回复
热议问题