简体   繁体   English

重用情节提要场景但缺少NavigationController

[英]Reusing a Storyboard Scene but missing NavigationController

I have a 'details' scene that can be navigated to by a drill down search. 我有一个“详细信息”场景,可以通过向下搜索进行导航。 But I also have a qr reader that when it reads a QR code, should take the user to the same details page. 但是我也有一个qr读取器,当它读取QR码时,应将用户带到相同的详细信息页面。 Now, that all works fine. 现在,一切正常。 My only issue, is when the I use the scanner, I am not presented with the Navigation Controller to take my self back to the scanner. 我唯一的问题是,当我使用扫描仪时,导航控制器并没有提示我将自己带回扫描仪。 I am presented with a Back button for the drill down from the table. 出现一个“后退”按钮,用于从表中向下钻取。

What is the best method for giving me a navigation controller that will pop me back to the correct original calling view? 给我导航控制器使我跳回到正确的原始呼叫视图的最佳方法是什么?

在此处输入图片说明

So the answer for those wondering, is WAY similar than I thought. 因此,对于那些想知道的人,答案与我所想的相似。 In my example, I simply embedded my Scan scene in a Navigation Controller. 在我的示例中,我只是将我的“扫描”场景嵌入到导航控制器中。

在此处输入图片说明

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

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