Why can't I use the show segue in xcode 6.1?

淺唱寂寞╮ 提交于 2019-12-01 17:51:22

问题


So I was doing a test for another swift project and I wanted to connect a TableViewController that had a NavigationController embedded in to a regular ViewController using a segue between a bar button item and the second ViewController. When I control-drag the button to the ViewController, I only get the following options:

From what I understand, I should see a long list of items including show and show detail. Even if I connect them with push or any other segue, I can't select show or show detail as the type of segue if I select the segue. What am I doing wrong? I have not made modifications to ViewController.swift. Thanks!


回答1:


The new adaptive segue choices, "show", "show detail", and "present modally", and "popover presentation" are only available if you're using size classes. This makes sense because there's no need for the segue to be adaptive if you're not using size classes.



来源:https://stackoverflow.com/questions/26747446/why-cant-i-use-the-show-segue-in-xcode-6-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!