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

      1. <legend id='UG25w'><style id='UG25w'><dir id='UG25w'><q id='UG25w'></q></dir></style></legend>
      2. <small id='UG25w'></small><noframes id='UG25w'>

        <tfoot id='UG25w'></tfoot>
      3. 使用 UINavigationController 从右向左推送 ViewController

        时间:2023-05-17
          <tbody id='1EoJX'></tbody>
        • <bdo id='1EoJX'></bdo><ul id='1EoJX'></ul>

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

            <small id='1EoJX'></small><noframes id='1EoJX'>

            <legend id='1EoJX'><style id='1EoJX'><dir id='1EoJX'><q id='1EoJX'></q></dir></style></legend>

                1. <tfoot id='1EoJX'></tfoot>
                2. 本文介绍了使用 UINavigationController 从右向左推送 ViewController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  众所周知 UINavigationController 从左到右推送 ViewController,有没有办法从右到左推送 View?就像后退按钮的动画一样.
                  现在我有这个:

                  As everyone know the UINavigationController push a ViewController from Left To Right, is there a way to push the View from Right To Left? like the animation for the back button.
                  For now I have this:

                  
                  [self.navigationController pushViewController:viewController animated:YES];
                  

                  推荐答案

                  您可以从 navigationController 的 viewcontrollers 数组创建一个 NSMutableArray 并在当前 viewController 之前插入新的 viewController.然后设置没有动画的 viewControllers 数组并弹回来.

                  You can create a NSMutableArray from the navigationController's array of viewcontrollers and insert new viewController before the current one. Then set the viewControllers array without animation and pop back.

                  UIViewController *newVC = ...;
                  NSMutableArray *vcs =  [NSMutableArray arrayWithArray:self.navigationController.viewControllers];
                  [vcs insertObject:newVC atIndex:[vcs count]-1];
                  [self.navigationController setViewControllers:vcs animated:NO];
                  [self.navigationController popViewControllerAnimated:YES];
                  

                  这篇关于使用 UINavigationController 从右向左推送 ViewController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:有没有办法在不使用 UINavigationController 的情况下更改 Storyboard 中 UINavig 下一篇:如何防止状态栏与 UINavigationController 上设置的 hidesBarsOnSwipe 内容重叠?

                  相关文章

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

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