[英]Embed segue option is missing in the storyboard
This seems to be a very simple question, but I can not google an answer.这似乎是一个非常简单的问题,但我无法在 google 上找到答案。 In my storyboard I'm dragging from one view controller to another, a list of segue options is popping up but there's no
Embed
option there which is one I need.在我的故事板中,我从一个视图控制器拖动到另一个视图控制器,弹出了一个 segue 选项列表,但那里没有我需要的
Embed
选项。 I tried Xcode 11 and 10 and it is missing in both.我尝试了 Xcode 11 和 10,但两者都没有。 What's wrong?
怎么了? Ho to find it?
怎么找呢?
Embed
Segues are used by container views. Embed
Segues 被容器视图使用。 These are views inside a viewController which loads another view from another viewController这些是 viewController 中的视图,它从另一个 viewController 加载另一个视图
If what you want is to present or push a view controller, you don't have to use an Embed
segue.如果您想要呈现或推送视图控制器,则不必使用
Embed
segue。
To create a push
segue or any other, drag click from the first box marked in the image while pressing the control
key, and place it on the ViewController you want, add an Identifier and use that to configure your VC from prepareForSegue
要创建
push
或其他任何内容,请在按住control
键的同时从图像中标记的第一个框拖动单击,并将其放置在您想要的 ViewController 上,添加一个标识符并使用它从prepareForSegue
配置您的 VC
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.