When using Auto Layout, the goal is to provide a series of equations that have one and only one possible solution.
当你使用自动布局时,目标是提供一系列的方程式,而这些方程式有且只有一种解决方法。
Auto layout is designed to create layouts that dynamically adapt to their environment.
自动布局是用来动态改变布局的尺寸以适应它们的环境。
Auto Layout then calculates the size and location of each view based on these constraints.
自动布局然后根据这些约束来计算每个视图的尺寸和位置。
应用推荐