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

    1. <tfoot id='N04Rp'></tfoot>

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

          <bdo id='N04Rp'></bdo><ul id='N04Rp'></ul>
      1. <legend id='N04Rp'><style id='N04Rp'><dir id='N04Rp'><q id='N04Rp'></q></dir></style></legend>
      2. UINavigationController 后退按钮没有动画

        时间:2023-06-12
          <tbody id='P4gCU'></tbody>
      3. <tfoot id='P4gCU'></tfoot>

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

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

              • <bdo id='P4gCU'></bdo><ul id='P4gCU'></ul>

                <legend id='P4gCU'><style id='P4gCU'><dir id='P4gCU'><q id='P4gCU'></q></dir></style></legend>
                • 本文介绍了UINavigationController 后退按钮没有动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  导航控制器的后退按钮动画有一个奇怪的问题:

                  I'm having a weird issue with a navigation controller's back button animation:

                  我的应用程序有一个带有 3 个选项卡的选项卡栏控件,其中一个有一个导航控制器和两个后续视图控制器,第一个只显示主表,第二个显示详细信息,当我点击后退按钮时出现问题从细节视图控制器,而不是滑回主视图控制器,它只是弹出没有动画的视图.

                  my app has a tab bar control with 3 tabs, one of them has a navigation controller with two subsequent view controllers, the first one just show a master table and the second one details, the problem comes when I tap the back button from the detail view controller, instead of slide back to the master view controller it just pops the view without animation.

                  我注意到,如果我先转到另一个选项卡,然后再返回此选项卡,动画将正常触发.

                  I've noticed that if I first go to another tab, and then return again to this one, the animation will trigger normally.

                  我已经从头开始重建了整个应用导航,但问题仍然存在,感谢任何帮助.

                  I've rebuilt the whole app navigation from scratch but the problem still persist, any help is appreciated.

                  提前致谢!

                  添加了更多信息

                  这就是我的故事板在那个特定分支中的样子:

                  This is how my storyboard looks like in that particular branch:

                  这是来自Partidos Activos"视图控制器的 prepareForSegue:

                  Here's the prepareForSegue from "Partidos Activos" view controller:

                  #pragma mark - Segues
                  
                  -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
                      if ([segue.identifier isEqualToString:@"PartidosEnDia"]) {
                          PartidosActivosEnFecha *paf = segue.destinationViewController;
                          CalendarCell *senderCell = (CalendarCell *)sender;
                          paf.datos = senderCell.dataDic;
                      }
                  }
                  

                  两个 viewController viewDidLoad 方法都在方法开始时调用 super.

                  Both viewController viewDidLoad methods are calling super at the start of the method.

                  正如我之前所说,如果我只是点击其他选项卡然后返回到这个选项卡,Partidos Activos En Fecha"视图控制器的滑回动画按预期工作,只有当我启动应用程序并直接转到这个 viewController 当滑动返回动画不起作用时,它只是在没有动画的情况下到达调用者 viewController.

                  As I told before, if I just tap on other tab and then come back to this one, the slide back animation from "Partidos Activos En Fecha" viewController works as expected, it's only when I start the application and go directly to this viewController when the slide back animation doesn't work, and it just gets to the caller viewController without animation.

                  希望我添加了足够的信息,如果不告诉我,我会再次添加.

                  Hope I added enough info, if not just tell me and I will add it again.

                  推荐答案

                  我终于找到问题所在了,我在 viewDidAppear 方法中漏掉了一个对 super 的调用但在 UITabBarController! 中,我只检查 viewControllers 的选项卡,而不是 tabbarviewcontroller.@rdelmar 是对的.

                  I finally found where the problem was, I was missing a call to super in the viewDidAppear method but in UITabBarController!, I was checking only viewControllers for the tabs but not the tabbarviewcontroller. @rdelmar was right.

                  这篇关于UINavigationController 后退按钮没有动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:UINavigationController 并呈现一个模态控制器 下一篇:在 viewDidAppear 中推送视图控制器不起作用

                  相关文章

                  • <bdo id='4shJW'></bdo><ul id='4shJW'></ul>

                  <small id='4shJW'></small><noframes id='4shJW'>

                • <legend id='4shJW'><style id='4shJW'><dir id='4shJW'><q id='4shJW'></q></dir></style></legend>
                  <tfoot id='4shJW'></tfoot>

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