开发者

Quartz 2D Drawing String in Rect, how can I get an ellipsis?

开发者 https://www.devze.com 2023-01-07 06:39 出处:网络
[infoText drawInRect:CGRectMake(10, 10, 310, 40) withFont:infoTextFont lineBreakMode:UILineBreakModeWordWrap];
[infoText drawInRect:CGRectMake(10, 10, 310, 40) withFont:infoTextFont lineBreakMode:UILineBreakModeWordWrap];

Any suggestions on how to produce an e开发者_开发技巧llipsis when the text exceeds the size of the rect?


I missed this one in the docs... UILineBreakModeTailTruncation

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号