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

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

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

      <legend id='fiP2O'><style id='fiP2O'><dir id='fiP2O'><q id='fiP2O'></q></dir></style></legend><tfoot id='fiP2O'></tfoot>
    1. iPhone:UINavigationController 顶部的奇怪空间

      iPhone: Weird space at the top of UINavigationController(iPhone:UINavigationController 顶部的奇怪空间)

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

              • <bdo id='Sd8im'></bdo><ul id='Sd8im'></ul>
              • 本文介绍了iPhone:UINavigationController 顶部的奇怪空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我在将 UINavigationController 添加到我的 iPhone 应用程序时遇到了一个奇怪的问题.我添加控制器如下:

                I'm having a strange problem with adding a UINavigationController to my iPhone application. I add the controller as follows:

                myViewController *viewController = [[myViewController alloc] initWithNibName:@"myView" bundle:nil];
                
                myNavigationViewController *navigationController = [[myNavigationViewController alloc] initWithRootViewController:viewController];
                
                UIView *finalView = myeNavigationViewController.view;
                
                [self.view addSubview:finalView];
                

                一切似乎都按计划进行,只是在状态栏和 UINavigationController 标题栏之间的视图顶部出现了一个奇怪的空白.替代文字 http://www.andrewskinner.name/problem.png

                All seems to work as planned except I get a weird white space at the top of my view between the status bar and the UINavigationController title bar. alt text http://www.andrewskinner.name/problem.png

                我在网上搜索过,但不知道要搜索什么.有没有其他人有这个问题?你能给我指明一些帮助的方向吗?

                I've searched online but don't really know what to search for. Has anyone else had this problem? Can you point me in the direction of some help?

                提前致谢.

                推荐答案

                查看这个问题的答案:

                不知道为什么 UIView 被轻推增加约 10 像素

                这篇关于iPhone: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 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设置灯光状态栏文字颜色的正确方法)
                Show UITabBar when UIViewController pushed(推送 UIViewController 时显示 UITabBar)
              • <small id='DBf2A'></small><noframes id='DBf2A'>

                  <tbody id='DBf2A'></tbody>

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

                      • <bdo id='DBf2A'></bdo><ul id='DBf2A'></ul>
                        <tfoot id='DBf2A'></tfoot>

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