简体   繁体   English

更改情节提要模拟指标会影响设备的大小

[英]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! 在情节提要中,一切似乎都在调整大小!

约束上

4英寸

4.7英寸

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.

相关问题 “ iPhone 5.5英寸”的模拟度量标准大小未在iPhone 6 plus设备中正确显示界面 - Simulated Metrics size for “iPhone 5.5-inch” doesn't show the interface correctly in iPhone 6 plus device 自动布局会影响更改模拟指标大小时的外观吗? - Does auto layout effect how things look when changing simulated metrics size? 更改模拟指标会弄乱我的xib - Changing simulated metrics is messing up my xib 如何在xcode 6.3界面构建器情节提要中默认模拟指标? - How to default simulated metrics in xcode 6.3 interface builder storyboard? iOS-使用AutoLayout构建UI时,应该在接口构建的模拟指标下使用什么大小 - iOS - What Size Should I Use Under Simulated Metrics In Interface Building When Building UI With AutoLayout 如何修复“Freeform Size模拟指标在Xcode 4.2之前不可用”警告? - How can I fix “Freeform Size simulated metrics are not available prior to Xcode 4.2” warnings? 使Universal(iPhone + iPad)应用程序在iPad上的iPhone故事板上运行(模拟大小) - Make Universal (iPhone+iPad) app run on iPhone storyboard on iPad (simulated size) 设备上的视图大小与快速情节提要上的视图大小不同 - Size of view on device not the same as on storyboard in swift 无选项未包含在模拟指标中 - None option not included in simulated metrics 表格视图单元格的大小取决于情节提要中预览设备的大小 - table view cell size depends on the preview device size in storyboard
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM