xib label约束的优先级

在平行或者垂直方向,对两个内容自适应的label进行约束,需要设置其Content Compression Resistance Priority(内容压缩阻力优先级)或者Content Hugging Priority(内容紧靠优先级) 进行正确合适的约束.
这一篇博客讲的通俗易懂, 推荐Autolayout——“Content Compression Resistance”和“Content Hugging”

猜你喜欢

转载自blog.csdn.net/xfy6238/article/details/81065687