How to adjust font size of label to fit the rectangle?

前端 未结 14 704
独厮守ぢ
独厮守ぢ 2020-11-28 07:00

Yeah, there\'s this cool myLabel.adjustsFontSizeToFitWidth = YES; property. But as soon as the label has two lines or more, it won\'t resize the text to anythin

14条回答
  •  抹茶落季
    2020-11-28 07:07

    Also set myLabel.numberOfLines = 10 or to whatever the max number of lines you want.

提交回复
热议问题