在斯坦福公开课中,白胡子老爷爷教了三种自动布局的方法:
1. 控件布局都处在建议的蓝虚线上时,使用Reset to Suggested Constraints
。
2. 使用对齐约束Alignment Constraints
或者距离约束:


3. 通过
Ctrl Drag
在两个视图/控件之间创建约束,按住Shift
同时设定多个约束。 

在斯坦福公开课中,白胡子老爷爷教了三种自动布局的方法:
1. 控件布局都处在建议的蓝虚线上时,使用Reset to Suggested Constraints
。
2. 使用对齐约束Alignment Constraints
或者距离约束:
Ctrl Drag
在两个视图/控件之间创建约束,按住Shift
同时设定多个约束。