[英]Changing storyboard simulated metrics is affecting size on device
Is this a bug or is something else wrong? 这是错误还是其他错误? I´m using Xcode 6.3.2
我正在使用Xcode 6.3.2
If I change the simulated metrics size to iPhone 4.7-inch and run the app on a 4-inch the scrollview width is 375, not 320 as expected. 如果我将模拟指标的大小更改为4.7英寸iPhone,并在4英寸上运行该应用程序,则滚动视图宽度为375,而不是预期的320。
If I then change simulated metrics size to iPhone 4-inch and run it, the scrollview with is 320. 如果然后我将模拟指标的大小更改为iPhone 4英寸并运行它,则滚动视图为320。
In the storyboard everything seems to be resizing just fine! 在情节提要中,一切似乎都在调整大小!
If I understand the issue you're having correctly, you're wondering why the scrollwidth is 375 on a 4.7 inch device, when you've changed the simulated metrics to a 4 inch phone (320 width). 如果我了解您所遇到的问题正确,您想知道为什么在将模拟指标更改为4英寸手机(320宽度)后,4.7英寸设备上的滚动宽度为何为375。
Answer: The simulated metrics have nothing to do with influencing the width of on a device. 答:模拟指标与影响设备宽度无关。 You should build you application in the default "inferred" simulated metric and build the view in wAny hAny.
您应该使用默认的“推断”模拟指标构建应用程序,并在任何时候构建视图。
If you want to see how the device will look on a device, you can use the assistant editor and preview : 如果要查看设备在设备上的外观,可以使用助手编辑器和预览:
Preview: 预习:
Sizes: 尺寸:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.