简体   繁体   English

在 XCode 11 中使用 FreeForm 作为模拟尺寸时,无法将 UIView 安装到 UIViewController 的全尺寸

[英]Not able to fit UIView to the full size of UIViewController when using FreeForm as Simulated Size in XCode 11

I made a freeform UIViewController of width 1875 and height 667. I am not able to fit the UIView to the full size of the UIViewController.我做了一个自由形式的 UIViewController,宽度为 1875,高度为 667。我无法将 UIView 安装到 UIViewController 的全尺寸。 But it is maxed out at 712 * 627. I checked all the similiar stack overflow questions, but i cannot find a solution.但它的最大值为 712 * 627。我检查了所有类似的堆栈溢出问题,但找不到解决方案。 Can some one help me with this?有人可以帮我弄这个吗? ScreenShot 1 ScreenShot 2截图 1截图 2

I figured out the answer to this question.我想出了这个问题的答案。 In the Simulated Size select Freeform and in the Simulated Metrics -> Size -> FormSheet .在 Simulated Size select FreeformSimulated Metrics -> Size -> FormSheet中。 Also check the Content Size to Use Preferred Explicit Size , and fill in the expected Width and Height.还要检查Content Size to Use Preferred Explicit Size ,并填写预期的宽度和高度。 In my case width 1875 and height 667. I hope this will help someone looking for the same.在我的情况下,宽度为 1875,高度为 667。我希望这将有助于寻找相同的人。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM