• <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

        时间:2023-06-12
          <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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:你如何在 UIBarItem 中使用 setTitleTextAttributes:forState? 下一篇:iPhone:制作箭头形状的 UIBarButtonItem

                  相关文章

                  1. <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>

                    <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>