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

前端 未结 17 2673
忘掉有多难
忘掉有多难 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:38

    Auto layout only work with edges/sizes of controller, not with controllers content.so its not a good idea to use auto layout to display your label text on top of first line. according to me sizetofit is a best option to do so.

提交回复
热议问题