阅读背景:

计算字体大小以适合框架 - 核心文本 - NSAttributedString - iOS

来源:互联网 

I have some text which I am drawing into a fixed frame via an NSAttributedString (code below). At the moment I am hard coding the text size to 16. My question is, is there a way to calculate the best fit size for the text for the given frame ?I have some text which I am drawing into a fixe




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: