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

    <tfoot id='wUGPz'></tfoot><legend id='wUGPz'><style id='wUGPz'><dir id='wUGPz'><q id='wUGPz'></q></dir></style></legend>

    1. <i id='wUGPz'><tr id='wUGPz'><dt id='wUGPz'><q id='wUGPz'><span id='wUGPz'><b id='wUGPz'><form id='wUGPz'><ins id='wUGPz'></ins><ul id='wUGPz'></ul><sub id='wUGPz'></sub></form><legend id='wUGPz'></legend><bdo id='wUGPz'><pre id='wUGPz'><center id='wUGPz'></center></pre></bdo></b><th id='wUGPz'></th></span></q></dt></tr></i><div id='wUGPz'><tfoot id='wUGPz'></tfoot><dl id='wUGPz'><fieldset id='wUGPz'></fieldset></dl></div>
        <bdo id='wUGPz'></bdo><ul id='wUGPz'></ul>
    2. 设置 navigationController.hidesBarsOnSwipe = YES 不再显示我的导航栏

      Setting navigationController.hidesBarsOnSwipe = YES never shows my navbar again(设置 navigationController.hidesBarsOnSwipe = YES 不再显示我的导航栏)
      • <legend id='HNhLh'><style id='HNhLh'><dir id='HNhLh'><q id='HNhLh'></q></dir></style></legend>

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

                本文介绍了设置 navigationController.hidesBarsOnSwipe = YES 不再显示我的导航栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                当我设置 navigationController.hidesBarOnSwipe = YES 并尝试在 webView 中滑动时显示导航栏已隐藏,但当我尝试滑动以将其取回时,它将永远不会再次出现.p>

                我的 ViewController 正在监听滑动事件:

                [self.navigationController.barHideOnSwipeGestureRecognizer addTarget:self action:@selector(swipe:)]?

                但事实上,在导航栏因为 Swipe 而隐藏之后,这个选择器就再也不会被调用了.有人实现了 hidesBarOnSwipe 吗?它是一个已知的错误还是按照设计它隐藏后不会显示导航栏.

                之前:

                之后:

                解决方案

                我的 UIWebView 也有同样的问题,通过将 WebView 的约束更新为相对于超级视图而不是布局指南:

                When i set navigationController.hidesBarOnSwipe = YES and try swiping in the webView shown the navigation bar is hidden, but it will never show up again, when i try swiping to get it back.

                My ViewController is listening to the swipe event :

                [self.navigationController.barHideOnSwipeGestureRecognizer addTarget:self action:@selector(swipe:)]?
                

                But this selector is in fact never called again after the navigation bar is hidden because of the Swipe. Anyone implemented hidesBarOnSwipe? Is it a known bug or is it as designed that it won't show the navigation bar after hiding it.

                Before:

                After:

                解决方案

                I have the same problem with my UIWebView, It's fixed by updating the constrains of my WebView to be relative to the superview not layout guide:

                这篇关于设置 navigationController.hidesBarsOnSwipe = YES 不再显示我的导航栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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 add a navigation controller programmatically in code but not as initial view controller(如何在代码中以编程方式添加导航控制器,但不作为初始视图控制器)
                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设置灯光状态栏文字颜色的正确方法)
              • <i id='ekmR0'><tr id='ekmR0'><dt id='ekmR0'><q id='ekmR0'><span id='ekmR0'><b id='ekmR0'><form id='ekmR0'><ins id='ekmR0'></ins><ul id='ekmR0'></ul><sub id='ekmR0'></sub></form><legend id='ekmR0'></legend><bdo id='ekmR0'><pre id='ekmR0'><center id='ekmR0'></center></pre></bdo></b><th id='ekmR0'></th></span></q></dt></tr></i><div id='ekmR0'><tfoot id='ekmR0'></tfoot><dl id='ekmR0'><fieldset id='ekmR0'></fieldset></dl></div>

                  • <legend id='ekmR0'><style id='ekmR0'><dir id='ekmR0'><q id='ekmR0'></q></dir></style></legend>
                      <bdo id='ekmR0'></bdo><ul id='ekmR0'></ul>

                          <tbody id='ekmR0'></tbody>
                          <tfoot id='ekmR0'></tfoot>

                        • <small id='ekmR0'></small><noframes id='ekmR0'>