开发者

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

[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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜