堆栈视图未正确对齐

时间:2016-03-31 06:25:08

标签: swift uistackview

我使用堆栈视图进行此布局,但在模拟器中运行时,它的扩展性不是很好,

enter image description here

这就是我在场景中对齐它们的方式。

enter image description here

1 个答案:

答案 0 :(得分:0)

stackView中的每个视图都应该设置aspectRatio约束。

另外,请不要忘记以下列方式设置stackView:

enter image description here

相关问题