Vertically align text within a UILabel (Note : Using AutoLayout)

前端 未结 17 2662
忘掉有多难
忘掉有多难 2020-12-23 02:24

I am Copying the same Question asked Before Question. I have tried the solutions given and was not able to solve it since sizetofit was not effective when I

17条回答
  •  無奈伤痛
    2020-12-23 02:46

    For me, I didn't set the height constraint, the text always grows from the top of the label. The constraints for this label are top, left, right. By the way, my label has fixed line numbers, so no worries about the height.

提交回复
热议问题