xcode中使用xib添加autolayout中constrain to margins的不同
在使用xcode7 在storyboard中添加autolayout中发现 如果添加在view 直接添加到viewcontroller的view 上
constrain to margins 只有左右20point的
如果view(viewB)没有直接添加到viewcontroller的view上而是添加到一个view 上,那么 viewB 的
constrain to margins是 上下左右各为8point的
仅是自己的一点体会,如果不对欢迎拍砖!!!

浙公网安备 33010602011771号