如何在故事板编辑器中调整UINavigationController的大小 [英] How to resize UINavigationController in a storyboard editor

查看:93
本文介绍了如何在故事板编辑器中调整UINavigationController的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我想在故事板编辑器窗口中调整UIViewController时,我会这样做:

When I want resize an UIViewController in a storyboard editor window I do:


  • 我把大小放到UIViewController属性中的freeForm检查员

  • 我选择视图并使用尺寸检查器调整她的尺寸

之后, uiViewController在故事板窗口中调整大小。

after that, the uiViewController is resized in storyboard window.

接下来,我选择视图控制器,单击:编辑>嵌入>导航控制器,问题是导航控制器已满大小与UIViewController的大小不同。我没有找到如何调整此导航控制器的大小。

Next, I select the view controller, click on: edit > embeded in> Navigation Controller and the problem is that navigation controller is in full size and not the same size that UIViewController. I don't find how resize this navigation controller.

推荐答案

您没有调整NavigationController的大小 - 它不是ViewController。它控制ViewControllers的导航。您指定了一个初始ViewController(默认情况下,嵌入到它中的ViewController将是初始的viewController)。然后,您将segues创建到其他ViewControllers中。

You don't resize a NavigationController - it is not a ViewController. It controls the navigation of ViewControllers. You specify an initial ViewController (the one you embedded into it will be the initial viewController by default). You then create segues into other ViewControllers.

这篇关于如何在故事板编辑器中调整UINavigationController的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆