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

前端 未结 17 2669
忘掉有多难
忘掉有多难 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 03:01

    I had the same problem, and this is how I solved it. I just edited the Baseline under Attribute Inspector for the Label. Set it to "Align Centers".

提交回复
热议问题