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

  • <legend id='cZqVB'><style id='cZqVB'><dir id='cZqVB'><q id='cZqVB'></q></dir></style></legend>
  • <tfoot id='cZqVB'></tfoot>

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

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

      1. UINavigationController 没有导航栏?

        UINavigationController without navigation bar?(UINavigationController 没有导航栏?)

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

                <tbody id='kTO0j'></tbody>
              <tfoot id='kTO0j'></tfoot>
            • <legend id='kTO0j'><style id='kTO0j'><dir id='kTO0j'><q id='kTO0j'></q></dir></style></legend>

              • <bdo id='kTO0j'></bdo><ul id='kTO0j'></ul>

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

                  本文介绍了UINavigationController 没有导航栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个通用应用程序,在 iPad 版本上我使用 UISplitViewController 创建一个类似于邮件应用程序的界面.

                  I have a universal app, and on the iPad version I'm using UISplitViewController to create an interface similar to the Mail app.

                  我在推送新的 Detail 视图时遇到了麻烦,因此我决定使用 UINavigationController 以便可以根据需要推送和弹出视图.但是,我不想使用导航视图或工具栏.但是无论我做什么,我都无法隐藏导航栏.

                  I was having trouble pushing new Detail views, so I decided to use a UINavigationController so I could just push and pop views as needed. However, I do not want to use the navigation view or a toolbar. But no matter what I do, I can't hide the navigation bar.

                  我尝试在 IB 中取消选中显示导航栏",我也尝试过设置:

                  I've tried unchecking "Shows Navigation Bar" in IB, and I've also tried setting:

                  [self.navigationController setNavigationBarHidden:YES];
                  

                  viewDidLoad/viewDidAppear/viewWillAppear 中.我还在将要推送的每个视图中都进行了尝试.没有任何效果.

                  in the viewDidLoad/viewDidAppear/viewWillAppear. I've also tried it in each of the views that will be pushed. Nothing works.

                  这里有什么我遗漏的吗?是否可以有一个没有工具栏或导航栏的 UINavigationController?

                  Is there something I'm missing here? Is it possible to have a UINavigationController without a toolbar or navigation bar?

                  推荐答案

                  你应该能够做到以下几点:

                  You should be able to do the following:

                  self.navigationController.navigationBar.isHidden = true //Swift 5
                  

                  self.navigationController(显然)是 UINavigationController 的一个实例.似乎对我有用,但我只是在发布之前对其进行了简单的测试.

                  where self.navigationController is (obviously) an instance of UINavigationController. Seems to work for me, but I only briefly tested it before posting this.

                  这篇关于UINavigationController 没有导航栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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(如何在代码中以编程方式添加导航控制器,但不作为初始视图控制器)
                  The correct way to set a light status bar text color in iOS 7 based on different ViewControllers(iOS 7中基于不同ViewControllers设置灯光状态栏文字颜色的正确方法)
                  View being blocked by UITransitionView after being presented(呈现后被 UITransitionView 阻止的视图)

                    <bdo id='omoIH'></bdo><ul id='omoIH'></ul>
                      <tbody id='omoIH'></tbody>
                    <tfoot id='omoIH'></tfoot>

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

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