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

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

      1. <tfoot id='cCdkN'></tfoot>
          <bdo id='cCdkN'></bdo><ul id='cCdkN'></ul>

        以流畅的动画显示/隐藏导航栏

        时间:2023-06-13

          <bdo id='z9cGr'></bdo><ul id='z9cGr'></ul>
              <tbody id='z9cGr'></tbody>

          1. <small id='z9cGr'></small><noframes id='z9cGr'>

            <tfoot id='z9cGr'></tfoot>

                • <legend id='z9cGr'><style id='z9cGr'><dir id='z9cGr'><q id='z9cGr'></q></dir></style></legend>
                  <i id='z9cGr'><tr id='z9cGr'><dt id='z9cGr'><q id='z9cGr'><span id='z9cGr'><b id='z9cGr'><form id='z9cGr'><ins id='z9cGr'></ins><ul id='z9cGr'></ul><sub id='z9cGr'></sub></form><legend id='z9cGr'></legend><bdo id='z9cGr'><pre id='z9cGr'><center id='z9cGr'></center></pre></bdo></b><th id='z9cGr'></th></span></q></dt></tr></i><div id='z9cGr'><tfoot id='z9cGr'></tfoot><dl id='z9cGr'><fieldset id='z9cGr'></fieldset></dl></div>
                  本文介绍了以流畅的动画显示/隐藏导航栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个基于导航的应用程序.第一个视图(rootcontroller)仅以三个大按钮开始.没有导航栏.从那里开始,其他一切都是表格视图并具有导航栏.我这样做是为了显示/隐藏导航栏:

                  I have a navigation based app. The first view (rootcontroller) starts with three large buttons only. No navigationbar. From there, everything else is tableviews and have navigation bars. I'm doing this to show/hide the navigation bar:

                  MyAppAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
                  appDelegate.navigationController.navigationBar.hidden = NO;
                  

                  一旦我离开了根控制器,导航栏会突然就位并位于 tableview 的顶部,而不是向下推.它剪辑了 tableview 的顶部.导航栏消失的方式返回到根控制器并不顺利.是否有更流畅/更好的方法来完成仅隐藏根控制器的导航栏?

                  Once I leave the root controller, the navigation bar will jerk into place and lay on top of the tableview, rather than pushing it down. It clips the top part of the tableview. Going back to the root controller isn't smooth in how the navigation bar disappears. Is there a smoother/better way to do accomplish hiding the navigation bar for the root controller only?

                  推荐答案

                  可以使用[navigationController setNavigationBarHidden:YES animated:YES]来平滑隐藏bar.

                  You can use [navigationController setNavigationBarHidden:YES animated:YES] to hide the bar smoothly.

                  参考

                  这篇关于以流畅的动画显示/隐藏导航栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在 iOS 7 上,如果最终包含在选项卡栏控制器中,则使用工具栏推送控制器会留下不可用空间的间隙 下一篇:iOS 11 prefersLargeTitles 直到滚动才更新

                  相关文章

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

                  <tfoot id='bdAdw'></tfoot>

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

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