开发者

Make UILabel's text "Stick" to the top when having multiple lines - ios

开发者 https://www.devze.com 2023-03-24 16:52 出处:网络
I have a UILabel which is loaded using a xib files, with the maximum of 2 rows. When I have 2 rows of text, it all works fine, but If I have only 1, it is being written in the middle of the label, and

I have a UILabel which is loaded using a xib files, with the maximum of 2 rows.

When I have 2 rows of text, it all works fine, but If I have only 1, it is being written in the middle of the label, and I dont want that to happen. I开发者_开发问答 just want it to stick to the top, as if the label was high enough for 1 row.

How can I implement this?

Tnx!

0

精彩评论

暂无评论...
验证码 换一张
取 消