简体   繁体   English

在故事板中,嵌入式视图控制器不再与其容器视图大小相同

[英]In storyboard, embedded view controllers no longer same size as their container views

I have a storyboard with multiple view controllers, several of which have container views with embedded view controllers.我有一个带有多个视图控制器的故事板,其中几个具有带有嵌入式视图控制器的容器视图。 Until recently, the embedded view controllers correctly sized themselves in the storyboard based on the size of their container views.直到最近,嵌入式视图控制器根据其容器视图的大小在故事板中正确地调整自己的大小。 But now they all show at 600 x 600 (which is not the size of any of the containers).但是现在它们都显示为 600 x 600(这不是任何容器的大小)。 They do assume the proper sizes when I run the app.当我运行应用程序时,它们确实假设了正确的大小。

Is there a way to restore the default behavior in the storyboard?有没有办法恢复故事板中的默认行为? (And what might have caused this?) (XCode 7.2) (这可能是什么原因造成的?)(XCode 7.2)

In the Simulated Metrics section of the size inspector change the Size from Inferred to Detail :在尺寸检查器的Simulated Metrics部分,将SizeInferred更改为Detail

在此处输入图片说明

New:新的:

[ [S[2]

Change the ViewController/Navigation Controller attribute in 'Simulated Metrics' from Inferred to 'Page Sheet' or 'Form Sheet' to get a full size storyboard.'Simulated Metrics' from Inferred to 'Page Sheet' or 'Form Sheet'的 ViewController/Navigation Controller 属性'Simulated Metrics' from Inferred to 'Page Sheet' or 'Form Sheet'以获得完整尺寸的故事板。 This removes the shrinking effect这消除了收缩效果

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将数据传递给嵌入在容器视图中的视图控制器 - Passing Data to view controllers that are embedded in container views 使用Storyboard在同一容器视图中的多个视图 - Multiple Views in Same Container View Using Storyboard 如果我在情节提要中具有容器视图,是否可以仅将一个视图控制器嵌入到导航控制器中? - If I have a container view in the Storyboard, is it possible to have only ONE of the view controllers be embedded in a navigation controller? 两个视图控制器具有相同的故事板标识符 - Two view controllers have the same storyboard identifier 如何根据容器视图使三个视图大小相同并调整大小? - how to make three views the same size and resized depending on the container view? 可调整大小的容器视图包含视图控制 - Resizable container views containing view controllers iOS:情节提要中的Scrollview无法与嵌入式容器视图一起滚动 - iOS: Scrollview in storyboard won't scroll with embedded container views 在了解故事板中的视图和视图控制器时遇到问题 - Having issues understanding views and view controllers inside a storyboard 在嵌入两个独立容器控制器中的视图之间实现委派 - Implementing delegation between views embedded in two separate container controllers 调整Storyboard中的另一个Container视图时,Container Views会消失 - Container Views disappear when resizing another Container View in a Storyboard
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM