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>

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

        Showing/hiding navigation bar with smooth animation(以流畅的动画显示/隐藏导航栏)

          <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.

                  参考

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

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  UINavigationController inside a UITabBarController inside a UISplitViewController presented modally on iPhone(UISplitViewController 内的 UITabBarController 内的 UINavigationController 以模态方式呈现在 iPhone 上) - IT屋-程序员软件开发技术分
                  ViewController in UINavigationController orientation change(UINavigationController 中的 ViewController 方向更改)
                  Custom back button in UINavigationController(UINavigationController 中的自定义后退按钮)
                  How to get the previous viewcontroller that pushed my current view(如何获取推送我当前视图的上一个视图控制器)
                  The correct way to set a light status bar text color in iOS 7 based on different ViewControllers(iOS 7中基于不同ViewControllers设置灯光状态栏文字颜色的正确方法)
                  Show UITabBar when UIViewController pushed(推送 UIViewController 时显示 UITabBar)

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

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

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

                            <tbody id='bdAdw'></tbody>

                          • <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>