<legend id='DHjyW'><style id='DHjyW'><dir id='DHjyW'><q id='DHjyW'></q></dir></style></legend>
      • <bdo id='DHjyW'></bdo><ul id='DHjyW'></ul>
    1. <small id='DHjyW'></small><noframes id='DHjyW'>

      <tfoot id='DHjyW'></tfoot>
      <i id='DHjyW'><tr id='DHjyW'><dt id='DHjyW'><q id='DHjyW'><span id='DHjyW'><b id='DHjyW'><form id='DHjyW'><ins id='DHjyW'></ins><ul id='DHjyW'></ul><sub id='DHjyW'></sub></form><legend id='DHjyW'></legend><bdo id='DHjyW'><pre id='DHjyW'><center id='DHjyW'></center></pre></bdo></b><th id='DHjyW'></th></span></q></dt></tr></i><div id='DHjyW'><tfoot id='DHjyW'></tfoot><dl id='DHjyW'><fieldset id='DHjyW'></fieldset></dl></div>
      1. 一次关闭多个模式视图控制器?

        时间:2023-05-16
            <bdo id='d2pnU'></bdo><ul id='d2pnU'></ul>
              <tbody id='d2pnU'></tbody>
          • <tfoot id='d2pnU'></tfoot>

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

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

                  本文介绍了一次关闭多个模式视图控制器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  所以有一个包含三个视图控制器的堆栈,其中 A 是根,B 是第一个模态视图控制器,C 是第三个模态 vc.我想立即从 C 转到 A.我已经尝试过 这个解决方案解雇.它确实工作,但方式不正确.也就是说,当最后一个视图控制器被关闭时,它将在显示第一个视图控制器之前简要显示第二个视图控制器.我正在寻找的是一种在一个不错的动画中从第三个 vc 到第一个的方法,而不会注意到第二个视图.非常感谢您对此的任何帮助.

                  So have a stack with three view controllers where A is root, B is first modal view controller and C is third modal vc. I would like to go from C to A at once. I have tried this solution to dismiss.It does work but not in a correct way. That is when the last view controller is dismissed it will breifly show the second view controller before the first is shown. What I'm looking for is a way to get from the third vc to the first in one nice animation without noticing the second view. Any help on this is greatly appriciated.

                  推荐答案

                  确保你只调用 dismissModalViewControllerAnimated: 一次.

                  Be sure that you're only calling dismissModalViewControllerAnimated: once.

                  我发现要求关闭每个堆叠的模态视图控制器会导致它们都产生动画.

                  I have found that asking to dismiss each stacked modal view controller will cause both of them to animate.

                  你有:A =modal>B =模态>C

                  你应该只调用 [myViewControllerA dismissModalViewControllerAnimated:YES]

                  如果您使用 [myViewControllerB dismissModalViewControllerAnimated:YES],它将关闭 C,而不是 B.在正常(未堆叠)使用中,它会关闭 B(由于响应者链使消息冒泡到 A).在您描述的堆叠场景中,B 是父视图控制器,这优先于作为模态视图控制器.

                  If you use [myViewControllerB dismissModalViewControllerAnimated:YES], it will dismiss C, and not B. In normal (unstacked) use, it would dismiss B (due to the responder chain bubbling the message up to A). In the stacked scenario that you describe B is a parent view controller and this takes precedence over being a modal view controller.

                  这篇关于一次关闭多个模式视图控制器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在两个 ViewController(委托)之间传递数据 - Swift 下一篇:iphone UIAlertView 模态

                  相关文章

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

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