2021年4月29日星期四

UILabel Minimum Number Of Lines

If you take a close look an an iMessage conversation cell, you'll notice that the preview text is always two lines long. This can't be a hard coded row height because the rows adjust to dynamic type. How can you always force a label to take up a certain number of lines even if there isn't enough text to do so?

enter image description here

https://stackoverflow.com/questions/67325668/uilabel-minimum-number-of-lines April 30, 2021 at 06:05AM

没有评论:

发表评论