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

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

      <bdo id='xEa4z'></bdo><ul id='xEa4z'></ul>

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

        iPhone UINavigation 问题 - 嵌套推送动画可能导致导航栏损坏

        时间:2023-05-17

        <small id='65ZLF'></small><noframes id='65ZLF'>

          <tbody id='65ZLF'></tbody>
      1. <legend id='65ZLF'><style id='65ZLF'><dir id='65ZLF'><q id='65ZLF'></q></dir></style></legend>
        <tfoot id='65ZLF'></tfoot>

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

                1. 本文介绍了iPhone UINavigation 问题 - 嵌套推送动画可能导致导航栏损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我不断收到以下错误:

                  2011-04-02 14:55:23.350 AppName[42430:207] nested push animation can result in corrupted navigation bar
                  2011-04-02 14:55:23.352 AppName[42430:207] nested push animation can result in corrupted navigation bar
                  2011-04-02 14:55:23.729 AppName[42430:207] Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
                  2011-04-02 14:55:23.729 AppName[42430:207] Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
                  

                  这就是我正在做的事情.在视图控制器中,当按下某个按钮时,我会调用以下命令:

                  Here is what I am doing. From a view controller, I call the following when a certain button is pushed:

                  EventsViewController *viewController = [[EventsViewController alloc] init];
                  UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:viewController];
                  navController.navigationBar.tintColor = [UIColor blackColor];
                  [self presentModalViewController:navController animated:YES];
                  [viewController release];
                  [navController release];
                  

                  然后,如果在 EventsController 中按下某个按钮,我调用:

                  Then, if a certain button is pushed in EventsController, I call:

                  SingleEventViewController *viewController = [[SingleEventViewController alloc] initWithEvent:[currentEvents objectAtIndex:indexPath.row]];
                  [self.navigationController pushViewController:viewController animated:YES];
                  [viewController release];
                  

                  然后,如果在 SingleEventViewController 中按下某个按钮,我调用:

                  Then, if a certain button is pushed in SingleEventViewController, I call:

                  EventMapView* viewController = [[EventMapView alloc] initWithCoordinates];
                  [[self navigationController] pushViewController:viewController animated:YES];
                  [viewController release];
                  

                  是的,很明显有嵌套的推送动画,但这不是正确的做法吗?我查看了 Apple 的 DrillDownSave 代码,这似乎是他们的做法.我使用 init 方法而不是 viewDidLoad 方法是否重要?

                  So yea, it's obvious that there's nested push animations, but isn't this the right way to go about it? I checked out Apple's DrillDownSave code and this appears to be how they're doing it. Does it matter that I use init methods instead of viewDidLoad methods?

                  推荐答案

                  我想通了.显然,如果您从 UITableViewDelegate 的 -didSelectRowAtIndexPath 方法之外调用 -pushViewController,它就不起作用.将调用移到该函数中有效.很奇怪.

                  I've figured it out. Apparently if you call -pushViewController from outside of the -didSelectRowAtIndexPath method of a UITableViewDelegate, it doesn't work. Moving the call into that function worked. Weird.

                  这篇关于iPhone UINavigation 问题 - 嵌套推送动画可能导致导航栏损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:self.title 设置navigationController 和tabBarItem 的标题?为什么? 下一篇:在 Swift 中禁用向后滑动手势

                  相关文章

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

                2. <legend id='gMR0D'><style id='gMR0D'><dir id='gMR0D'><q id='gMR0D'></q></dir></style></legend>

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