NSAttributedString reporting incorrect sizes for UITextView sizeThatFits and boundingRectWithSize with correct options set

后端 未结 3 829
不思量自难忘°
不思量自难忘° 2021-02-15 00:26

I have an NSAttributedString that is reporting a boundingRectWithSize (and by extension a UITextView which improperly calculates its sizeThatFits) when the font size is decrease

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-15 00:49

    Don't know if this will help solve your issue, but check out my solution for auto-sizing text UITextView here: https://stackoverflow.com/a/30400391/1664123

提交回复
热议问题