SB中使用Autolayout设置到父视图的间距为0

发现打上钩的话在plus以下的屏幕上控件的实际x会是-4但是在plus上是0,

所以要设置一致的到视图的左右都未0 必须把Constrain to margins钩去掉!

原文地址:https://www.cnblogs.com/cnman/p/Autolayout.html