简体   繁体   English

故事板:将其他场景嵌入导航控制器后添加新场景

[英]storyboard: add a new scene after embedding other scene in navigation controller

I have some scenes set up and already embedded them in the navigation stack (see pic). 我已经设置了一些场景,并且已经将它们嵌入到导航堆栈中(请参见图片)。

在此处输入图片说明

If I now duplicate the lower right segue, it doesn't have the navigation bar (see pic below). 如果我现在复制右下角的Segue,则它没有导航栏(请参见下图)。 I can set the top bar from "inferred" to "navigation bar", but that won't put it on the existing navigation stack (eg no back button etc.). 我可以将顶部栏从“推断”设置为“导航栏”,但这不会将其放在现有的导航堆栈中(例如,没有后退按钮等)。

How can I get the new ViewController into the existing navigation stack? 如何将新的ViewController放入现有的导航堆栈中?

Lots of thanks in advance. 提前非常感谢。

在此处输入图片说明

我不知道您按什么顺序执行此操作,但是我发现如果我复制了View Controller,然后只是将您作为登录表View Controller拥有的东西添加到了重复的View Controller中,即重复的View Controller将拾取导航栏并成为viewControllers集合的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM