Is it possible to vertically align text inside labels with a “large” frame

前端 未结 8 1633
梦谈多话
梦谈多话 2021-01-01 11:58

In my application I have multiple tableviews with custom cells. Some of the text in the cells are spread out on between 2-4 lines so the height of the label is large enough

8条回答
  •  无人及你
    2021-01-01 12:33

    I actually noticed that using

    [Blue setSizeToFit]
    

    does align vertically to the top. The default being centered.

提交回复
热议问题