iOS7发布后,以下函数已被弃用:
drawAtPoint:forWidth:withFont:minFontSize:actualFontSize:lineBreakMode:baselineAdjustment:
在苹果的文档中建议使用
drawInRect:withAttributes:
我使用这个函数的原因是因为其中的<code>minFontSize</code>
参数,它允许我在矩形内绘制字符串。
如果文本不适合,它会先缩小文本大小到<code>minFontSize</code>
,然后如果仍然不适合,就会截断它。
我无法使用<code>drawInRect:withAttributes:</code>
来实现这一点。
哪个键可以用来确定等效于<code>minFontSize</code>
的值?