在自动布局中有2个优先级分别是 content hugging priority 抗伸缩优先级 默认值为251 content compression priority 抗压缩优先级 默认值为750数值越大,表示控件越不容易被改变 两个label在同一行,想要互相不冲突就可以选择其中一个label对它的 content hugging priority 默认值进行修改,高于另一个label 的 content hugging priority 即可
在自动布局中有2个优先级分别是
content hugging priority 抗伸缩优先级 默认值为251
content compression priority 抗压缩优先级 默认值为750
数值越大,表示控件越不容易被改变
两个label在同一行,想要互相不冲突就可以选择其中一个label对它的 content hugging priority 默认值进行修改,高于另一个label 的 content hugging priority 即可