Hi,
I am drawing a NSString using drawAtPoint (drawInRect, that makes no big difference). There is a parameter to set the line break mode, but has anyone an idea how to append "..." to strings if they are truncated?
One option is, to check whether the string is short enough. If that is not the case, iteratively remove the last character until the string length + 3 euqals the maximum length.
I am sure there is a better solution. Anyone an idea?
Best,
heinrich