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

          <bdo id='ytaSs'></bdo><ul id='ytaSs'></ul>
        <tfoot id='ytaSs'></tfoot>

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

        故事板中 UINavigationController 的弹出框大小

        Popover size with UINavigationController in Storyboard(故事板中 UINavigationController 的弹出框大小)

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

          <tfoot id='oqxBd'></tfoot>

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

        2. <small id='oqxBd'></small><noframes id='oqxBd'>

                <bdo id='oqxBd'></bdo><ul id='oqxBd'></ul>
                    <tbody id='oqxBd'></tbody>
                  本文介绍了故事板中 UINavigationController 的弹出框大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我创建了一个 iPad 应用程序,其中包含嵌入在导航控制器中的弹出视图.我喜欢尽可能多地使用 Storyboard,并且在 Xcode 中设置 "Use Explicit Size" 会给我在 iPad 上的弹出框的正确大小.但在 Xcode 中查看情节提要时,它不会调整 UINavigationController 视图及其嵌入的 UIViewControllers 的大小.

                  I have created an iPad app containing a popover view embedded in a navigation controller. I like using Storyboard as much as possible, and setting the "Use Explicit Size" in Xcode give me the correct size of my popover on the iPad. But it does not resize the UINavigationController view and its embedded UIViewControllers when viewing the storyboard in Xcode.

                  这很烦人,因为我在 Xcode 中的视图大小与弹出框的实际大小不对应.

                  This is quite annoying as the size of my view in Xcode does not correspond to the actual size of the popover.

                  所以,我的问题是没有设置正确的弹出框大小(我也知道我可以用代码做到这一点),但我希望情节提要中的视图显示我的视图的实际大小.

                  So, my problem is not setting the correct size of the popover (i also know i can do that with code), but I want the views in storyboard to show the actual size of my views.

                  使用故事板创建嵌入在导航控制器中的视图控制器的正确方法是什么?

                  What is the correct way to create viewControllers embedded in a navigation controller using storyboard?

                  推荐答案

                  对于嵌入在导航控制器中的视图,您可以通过执行以下操作更改它们在故事板中的大小:

                  For the views embedded in the navigation controller, you can change their size in the storyboard by doing the following:

                  1. 选择视图控制器.
                  2. 转到 Simulated Metrics 下的 Attributes Inspector 并选择 Size: Freeform.
                  3. 选择视图控制器的视图.
                  4. 转到尺寸检查器并更改宽度和高度.

                  之后,应该在情节提要中正确调整视图的大小.

                  After that, the view should be sized correctly in the storyboard.

                  很遗憾,我不知道如何更改导航控制器的大小.

                  Unfortunately I do not know how to change the size of the navigation controller.

                  这篇关于故事板中 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 阻止的视图)
                      <tbody id='aLVwo'></tbody>

                  • <small id='aLVwo'></small><noframes id='aLVwo'>

                          <tfoot id='aLVwo'></tfoot>

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