• <tfoot id='lBWDv'></tfoot>

      <small id='lBWDv'></small><noframes id='lBWDv'>

      1. <legend id='lBWDv'><style id='lBWDv'><dir id='lBWDv'><q id='lBWDv'></q></dir></style></legend>
        • <bdo id='lBWDv'></bdo><ul id='lBWDv'></ul>
      2. <i id='lBWDv'><tr id='lBWDv'><dt id='lBWDv'><q id='lBWDv'><span id='lBWDv'><b id='lBWDv'><form id='lBWDv'><ins id='lBWDv'></ins><ul id='lBWDv'></ul><sub id='lBWDv'></sub></form><legend id='lBWDv'></legend><bdo id='lBWDv'><pre id='lBWDv'><center id='lBWDv'></center></pre></bdo></b><th id='lBWDv'></th></span></q></dt></tr></i><div id='lBWDv'><tfoot id='lBWDv'></tfoot><dl id='lBWDv'><fieldset id='lBWDv'></fieldset></dl></div>

        NSGenericException', reason: '只有当源控制器由 UINavigationC

        NSGenericException#39;, reason: #39;Push segues can only be used when the source controller is managed by an instance of UINavigationController(NSGenericException, reason: 只有当源控制器由 UINavigationController 的实例管理时,才能使用推送 s
          <bdo id='CQkAh'></bdo><ul id='CQkAh'></ul>

          <small id='CQkAh'></small><noframes id='CQkAh'>

          • <legend id='CQkAh'><style id='CQkAh'><dir id='CQkAh'><q id='CQkAh'></q></dir></style></legend>
              <tbody id='CQkAh'></tbody>
            <i id='CQkAh'><tr id='CQkAh'><dt id='CQkAh'><q id='CQkAh'><span id='CQkAh'><b id='CQkAh'><form id='CQkAh'><ins id='CQkAh'></ins><ul id='CQkAh'></ul><sub id='CQkAh'></sub></form><legend id='CQkAh'></legend><bdo id='CQkAh'><pre id='CQkAh'><center id='CQkAh'></center></pre></bdo></b><th id='CQkAh'></th></span></q></dt></tr></i><div id='CQkAh'><tfoot id='CQkAh'></tfoot><dl id='CQkAh'><fieldset id='CQkAh'></fieldset></dl></div>

                • <tfoot id='CQkAh'></tfoot>
                • 本文介绍了NSGenericException', reason: '只有当源控制器由 UINavigationController 的实例管理时,才能使用推送 segues的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  所以我正在制作一个带有 5 个视图控制器的应用程序,第一个嵌入在 UINavigationController 中,前 4 个视图控制器之间的 segue 工作正常.然而,引入第 5 个视图控制器打破了这一点,我得到了错误

                  so I'm making an app with 5 view controllers, the first is embedded in a UINavigationController and the segue between the first 4 view controllers works fine. However introducing a 5th View Controller has broken this, and I'm getting the error

                  Terminating app due to uncaught exception 'NSGenericException', reason: 'Push segues can only be used when the source controller is managed by an instance of UINavigationController.'
                  

                  我没有对第 5 个视图控制器做任何不同的事情,它只是一个带有图像视图和标签的标准 ViewController,我所有的 segues 都是由故事板中的 ctrl 拖动按钮调用的.有人知道是什么原因造成的吗?

                  I havent done anything differently with this 5th view controller, its just a standard ViewController with an image view and a label, and all of my segues are called by ctrl dragging buttons in the storyboard. Does anybody have any idea whats causing this?

                  谢谢

                  推荐答案

                  将导航控制器添加到您的初始视图

                  1. 选择初始视图
                  2. 转到编辑器--> 嵌入 --> 导航控制器.
                  1. Select the initial view
                  2. Go To Editor--> Embed In --> Navigation Controller.

                  这篇关于NSGenericException', reason: '只有当源控制器由 UINavigationController 的实例管理时,才能使用推送 segues的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  UINavigationController inside a UITabBarController inside a UISplitViewController presented modally on iPhone(UISplitViewController 内的 UITabBarController 内的 UINavigationController 以模态方式呈现在 iPhone 上) - IT屋-程序员软件开发技术分
                  ViewController in UINavigationController orientation change(UINavigationController 中的 ViewController 方向更改)
                  Custom back button in UINavigationController(UINavigationController 中的自定义后退按钮)
                  How to add a navigation controller programmatically in code but not as initial view controller(如何在代码中以编程方式添加导航控制器,但不作为初始视图控制器)
                  How to get the previous viewcontroller that pushed my current view(如何获取推送我当前视图的上一个视图控制器)
                  The correct way to set a light status bar text color in iOS 7 based on different ViewControllers(iOS 7中基于不同ViewControllers设置灯光状态栏文字颜色的正确方法)
                    • <i id='8Dl9v'><tr id='8Dl9v'><dt id='8Dl9v'><q id='8Dl9v'><span id='8Dl9v'><b id='8Dl9v'><form id='8Dl9v'><ins id='8Dl9v'></ins><ul id='8Dl9v'></ul><sub id='8Dl9v'></sub></form><legend id='8Dl9v'></legend><bdo id='8Dl9v'><pre id='8Dl9v'><center id='8Dl9v'></center></pre></bdo></b><th id='8Dl9v'></th></span></q></dt></tr></i><div id='8Dl9v'><tfoot id='8Dl9v'></tfoot><dl id='8Dl9v'><fieldset id='8Dl9v'></fieldset></dl></div>
                        <tbody id='8Dl9v'></tbody>

                      <small id='8Dl9v'></small><noframes id='8Dl9v'>

                            <bdo id='8Dl9v'></bdo><ul id='8Dl9v'></ul>
                            <legend id='8Dl9v'><style id='8Dl9v'><dir id='8Dl9v'><q id='8Dl9v'></q></dir></style></legend><tfoot id='8Dl9v'></tfoot>