uilabel tail truncation

后端 未结 4 1436
慢半拍i
慢半拍i 2020-11-30 14:06

Im working on an ios app using objective c and i have an issue with uilabel that i could use some help with. Basically i have a label that can change size to fit the text th

4条回答
  •  青春惊慌失措
    2020-11-30 14:57

    Using this method:

    How to find UILabel's number of Lines

    You could set the label to the max height, find out how tall the text is in that label and shrink it as necessary.

提交回复
热议问题