part1
英文原版地址:
http://www.raywenderlich.com/50317/beginning-auto-layout-tutorial-in-ios-7-part-1
中文翻译地址:
http://www.cocoachina.com/ios/20131203/7462.html
part2
英文原版地址:
http://www.raywenderlich.com/50319/beginning-auto-layout-tutorial-in-ios-7-part-2
中文翻译地址:
http://www.cnblogs.com/zer0Black/p/3977288.html
在自动布局中,添加Constraints后,十分容易出现错位的视图,这个时候,我们需要视图与Constraints一致,需要选择控件,点击菜单上得Editor→Resolve Auto Layout Issues→Update Frames就可以实现。
在实现画廊布局的时候,每次复制一个布局,就会出现很多橙色线条提示,这个时候不要着急,通过Reset to Suggestd Constraints重置布局约束,然后重新添加Image、Lable的约束后,继续后续教程操作,最后添加Equals约束就能实现横屏、竖屏显示效果。