AutoLayout setting UILabel height to zero

前端 未结 5 1526
暗喜
暗喜 2021-02-14 01:40

I have a UILabel for item description amongst other views, all laid out using constraints in Interface Builder - you can see all relevant constraints in the image b

5条回答
  •  时光说笑
    2021-02-14 02:28

    ctrl drag from the label to itself > select height > set the constant of the height to 0 and change equal (==) to greater than or equeal (>=)

提交回复
热议问题