<legend id='CFsKh'><style id='CFsKh'><dir id='CFsKh'><q id='CFsKh'></q></dir></style></legend>

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

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

    2. 如何同时滑入/滑出状态栏和导航栏?

      时间:2023-06-11
        <tbody id='GCy5r'></tbody>
        <bdo id='GCy5r'></bdo><ul id='GCy5r'></ul>

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

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

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

                <legend id='GCy5r'><style id='GCy5r'><dir id='GCy5r'><q id='GCy5r'></q></dir></style></legend>
              1. 本文介绍了如何同时滑入/滑出状态栏和导航栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我想使用幻灯片效果同时显示和隐藏状态栏和导航栏.

                I'd like to show and hide the statusBar and the navigationBar simultaneously using a slide effect.

                我就是这样尝试的:

                [[UIApplication sharedApplication] setStatusBarHidden:hide withAnimation:UIStatusBarAnimationSlide];
                [self.navigationController setNavigationBarHidden:hide animated:animated];
                

                但是,两个动画的持续时间是不一样的.状态栏动画需要更长的时间.我发现无法指定任一动画的持续时间.我错过了什么明显的东西吗?

                However, the duration of both animation is not the same. The status bar animation takes longer. I found no way how to specify the duration of either animation. Did I miss something obvious?

                推荐答案

                显然,没有简单的解决方案可以做到这一点.苹果必须修复它.

                Clearly, there's no easy solution to do this right. Apple has to fix it.

                当然,一种解决方法是按照 Ephraim 的建议使用 alpha 衰减.如果您坚持滑动行为,我发现最好只为导航栏设置动画并隐藏/显示状态栏而不使用任何动画.这看起来比滑动状态栏要好得多,因为动画期间状态栏之间的间隙非常明显.

                Of course, one work-around is to use alpha fading as Ephraim suggests. If you're insisting on the sliding behavior, I found it best to just animate the navigation bar and hide/show the statusBar without any animation. This looks much better than sliding the status bar because the gap between the bars during the animation is quite noticeable.

                这篇关于如何同时滑入/滑出状态栏和导航栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:无法为子视图 pushViewController 下一篇:一些 UIViewControllers 中的 XAMARIN.IOS UITabBarController

                相关文章

                <tfoot id='7ZzHv'></tfoot>

                <small id='7ZzHv'></small><noframes id='7ZzHv'>

                1. <legend id='7ZzHv'><style id='7ZzHv'><dir id='7ZzHv'><q id='7ZzHv'></q></dir></style></legend>

                  • <bdo id='7ZzHv'></bdo><ul id='7ZzHv'></ul>

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