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

后端 未结 11 428
离开以前
离开以前 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 11:14

    I have had this exact issue with "Show (eg. Push)" for ages and I have just figured it out whilst trying to push a view controller onto a navigation controller that is in a Popover. It seems that the context of the called View Controller is the problem. So this is how I resolved it:

    1. On the View Controller performing the Segue, check the "Defines Context" property in the Storyboard.
    2. In the called View Controller, set the Presentation property to "Current Context".

提交回复
热议问题