Search code examples
objective-ccocoacocoa-touchquartz-2d

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 ellipsis when the text exceeds the size of the rect?


Solution

  • I missed this one in the docs... UILineBreakModeTailTruncation