简体   繁体   English

在iPhone iPhone 6 plus中,全角组件的左侧和右侧都有边距

[英]In iPhone iPhone 6 plus there is a margin on right and left side of full width components

In iPhone iPhone 6 plus there is a margin on right and left side of full width components. 在iPhone iPhone 6 plus中,全角组件的左侧和右侧都有边距。

i added a full width image and added auto layouts. 我添加了全宽图像并添加了自动布局。 but in iPhone 6 plus screen there is a margin on left and right side of image view. 但在iPhone 6 plus屏幕上,图像视图的左侧和右侧都有边距。

By default, in iOS8, auto layout will constrain views to their superview's margin (8pt away from the edge). 默认情况下,在iOS8中,自动布局会将视图限制在其超级视图的空白处(距离边缘8pt)。 To avoid this, you can constrain the view to it's superview's edge by unticking the "Constrain to margins" checkbox in the Pin contextual menu or by using the Editor->Pin->Leading/Trailing Space to superview top menu item. 为避免这种情况,您可以通过取消选中“固定”上下文菜单中的“约束到边距”复选框或使用“编辑器”->“插针”->“引导/尾随空间”来查看顶部菜单项来将视图约束到其超级视图的边缘。

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

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