I'm using a slightly customized version of Loren Brichter's Fast Scrolling script and I'm having a problem where the labels in the cells don't stop if they reach the end of the cell. When programming table views the standard way, if the textLabels
or detailTextLabels
are too long, they automatically cut off and apply three dots at the end of the string to stay within the cell.
I want to do exactly the same thing, but I have no idea how to achieve it. Here is the code I use when adding text to the table view cell:
CGPoint t;
CGPoint d;
t.x = feedImage.size.width + 10 + 12;
t.y = 20;
[textLabel drawAtPoint:t withFont:textLabelFont];
d.x = feedImage.size.width + 10 + 12;
d.y = 39;
[detailTextLabel drawAtPoint:d withFont:detailTextLabelFont];