带边缘插入的UIButton不遵循内容抗压性能

时间:2015-05-21 09:50:56

标签: ios uibutton ios-autolayout

内容拥抱优先级= 250

内容压缩阻力优先级= 750

width = 70 priority = 500(普通文本)

左右边缘插入= 3

This is how it looks when left and right edge inset is =3

如果我设置左右边缘inset = 0和剩余的东西,因为它是

This is how it looks when left and right edge inset is =0

1 个答案:

答案 0 :(得分:0)

不是设置标题插入,而是设置内容插入,它会正常工作