Modal segue, navigation bar disappears

前端 未结 11 1213
既然无缘
既然无缘 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:39

    That is probably because you don't have a UINavigationController in your modal. You should use one (or just add a navigation bar to your ViewController in the Storyboard), and present that modally.

提交回复
热议问题