[英]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)
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.