I am trying to use this method to draw a string into a custom UITableViewCell.
[self.text drawInRect:TEXT_RECT withFont:font lineBreakMode:UILineBreakModeTailTruncation alignment:UITextAlignmentLeft];
The problem is that if the text is too long, the text is actually tail truncate but it doesn't display the "..."
If I use the drawInPoint
[self.text drawAtPoint:CGPointMake(60, 0) forWidth:200 withFont:font minFontSize:15 actualFontSize:nil lineBreakMode:UILineBreakModeTailTruncation
baselineAdjustment:UIBaselineAdjustmentAlignBaselines];
Then, I get the "..." but now it make all of my text one line, so the quite long text will get truncated too soon. For example:
If I have the text "Hello all, here is my first book"
. If I use drawInRect, then I can display it in 2 lines, but if I use drawAtPoint, I only see the first line like : "Hello all, here ..."
So, any help to make either method work will be appreciated