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

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

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

        iOS:删除 UINavigationBar 动画

        时间:2023-06-13
      1. <tfoot id='3aMmX'></tfoot>

        • <i id='3aMmX'><tr id='3aMmX'><dt id='3aMmX'><q id='3aMmX'><span id='3aMmX'><b id='3aMmX'><form id='3aMmX'><ins id='3aMmX'></ins><ul id='3aMmX'></ul><sub id='3aMmX'></sub></form><legend id='3aMmX'></legend><bdo id='3aMmX'><pre id='3aMmX'><center id='3aMmX'></center></pre></bdo></b><th id='3aMmX'></th></span></q></dt></tr></i><div id='3aMmX'><tfoot id='3aMmX'></tfoot><dl id='3aMmX'><fieldset id='3aMmX'></fieldset></dl></div>
        • <legend id='3aMmX'><style id='3aMmX'><dir id='3aMmX'><q id='3aMmX'></q></dir></style></legend>
            <tbody id='3aMmX'></tbody>

          • <small id='3aMmX'></small><noframes id='3aMmX'>

              <bdo id='3aMmX'></bdo><ul id='3aMmX'></ul>

                  本文介绍了iOS:删除 UINavigationBar 动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我们的应用有一个 UINavigationBar,上面有一张图片.当我们继续(推送)到另一个屏幕然后单击后退按钮时,导航栏上的图像似乎在重新出现时从左到右进行动画处理.这有点让人分心.你怎么能删除这个后退按钮动画?

                  我们尝试更改 segue 动画设置,但这会更改推送动画而不是返回动画.

                  我们的导航条码:

                   让 logoImage:UIImage = UIImage(named: "ABC")!viewController.navigationItem.titleView = UIImageView(图片: logoImage)

                  解决方案

                  很大程度上是由于这个答案

                  请注意,我没有像链接的答案那样覆盖 NavigationController popViewControllerAnimated.

                  Our app has an UINavigationBar with an image on it. When we segue (push) to another screen then click the back button the image on the Navigation Bar seems to animate from left to right as it reappears. This is a little distracting. How can you remove this back button animation?

                  We tried changing the segue Animates setting but this changes both the push animation and not the back animation.

                  Our Nav Bar code:

                      let logoImage:UIImage = UIImage(named: "ABC")!
                      viewController.navigationItem.titleView = UIImageView(image: logoImage)
                  

                  解决方案

                  Figured this out in large part due to this answer https://stackoverflow.com/a/8602982/47281

                  Create a custom Nav Bar and override popItem:

                  class MyNavigationBar: UINavigationBar {
                      override func popItem(animated: Bool) -> UINavigationItem? {
                          return super.popItem(animated: false)
                      }
                  }
                  

                  Entered MyNavigationBar as the Navigation Bar class for our Navigation Controller via the Storyboard:

                  Note I did not override NavigationController popViewControllerAnimated as in the linked answer.

                  这篇关于iOS:删除 UINavigationBar 动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:自定义 UITabBarController 和 UINavigationController 下一篇:如何在导航栏中放置 UIImage 使其成为徽标?

                  相关文章

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

                    1. <tfoot id='Yzdnp'></tfoot>

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

                        <bdo id='Yzdnp'></bdo><ul id='Yzdnp'></ul>
                    2. <legend id='Yzdnp'><style id='Yzdnp'><dir id='Yzdnp'><q id='Yzdnp'></q></dir></style></legend>