'Show' segue in Xcode 6 presents the viewcontroller as a modal in iOS 7

后端 未结 11 568
离开以前
离开以前 2021-01-01 10:11

I have two view controllers in my iPhone application (built with swift) built with Xcode 6.1 and uses storyboards.

The first view controller is embedded in a navigat

11条回答
  •  醉话见心
    2021-01-01 10:58

    For me, my storyboard lacked a navigation controller. I am creating the navigation controller programmatically, which works fine in iOS8, but not iOS7.

    SOLUTION

    1. In your storyboard, select the main view controller and in the Xcode menu, choose Editor > Embed In > Navigation Controller.
    2. Select the new navigation controller, and in the attributes inspector on the right, under View Controller, make sure Is Initial View Controller is checked.
    3. Run the app. Should be fixed now.

提交回复
热议问题