<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 不再显示我的导航栏

      时间:2023-06-11
      • <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 和后退按钮操作 下一篇:将 UINavigationController 的工具栏移到顶部以位于导航栏下方

                相关文章

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

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

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

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