如何从一个的viewController删除保证金? [英] How to remove margin from a viewController?
本文介绍了如何从一个的viewController删除保证金?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经用故事板的新项目。现在,我要一个UIView添加到默认的ViewController。当我试图使用自动版式约束添加到UIView的与它的父的ViewController,它显示-16,而不是0的前沿和后空间。这使得UIView的比默认的UIViewController宽度。我怎么能删除此?请帮助。
I have created a new project using storyboard. Now, I want to add a UIView into the default ViewController. When I tried to add constraint using AutoLayout to the UIView with it's parent ViewController, it is showing -16 instead of 0 at both leading and trailing space. Which make the UIView smaller than the default UIViewController width. How could I remove this? Please help.
推荐答案
只是删除约束,以保证金的选项。
just remove constraints to margin option ..
这篇关于如何从一个的viewController删除保证金?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文