Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone XCode 7,显示(按下)序列显示为模态,无返回按钮_Iphone_Xcode_Uiviewcontroller_Uinavigationcontroller_Segue - Fatal编程技术网

Iphone XCode 7,显示(按下)序列显示为模态,无返回按钮

Iphone XCode 7,显示(按下)序列显示为模态,无返回按钮,iphone,xcode,uiviewcontroller,uinavigationcontroller,segue,Iphone,Xcode,Uiviewcontroller,Uinavigationcontroller,Segue,我在interface builder中的布局如下所示 初始视图控制器:按钮1------模式segue------->UIViewController 初始视图控制器:按钮2------显示序列------->UINavigationController------->UITableViewcontroller 从按钮1开始的顺序工作得非常好。没问题 但是,segue from按钮2显示UITableViewController从底部向上滑动(类似于模式演示),而不是从右侧滑动。此外,导航栏没

我在interface builder中的布局如下所示

初始视图控制器:按钮1------模式segue------->UIViewController

初始视图控制器:按钮2------显示序列------->UINavigationController------->UITableViewcontroller

从按钮1开始的顺序工作得非常好。没问题

但是,segue from按钮2显示UITableViewController从底部向上滑动(类似于模式演示),而不是从右侧滑动。此外,导航栏没有自动提供的后退按钮

如果我在UINavigationController中嵌入初始视图控制器,它确实可以工作,但是我在初始视图控制器上有一个导航栏,这是我不想要的。设置self.navigationController?.navigationBarHidden=true 视图下将显示在初始视图中控制器似乎确实起作用,但对我来说似乎是一种攻击

在不推荐使用的推送序列之前,它曾经工作得很好。有什么问题吗?我确实尝试过删除并重新创建segue,但没有帮助。我甚至尝试将自己的后退按钮添加到导航栏,然后用它调用
self.navigationController?.popViewControllerAnimated(true)

但它什么也没做,可能是因为它实际上是以模态方式显示的。我在这里该怎么办