I have the following code in iOS:
CFAttributedStringRef attributedString = ... CTLineRef line = CTLineCreateWithAttributedString(attributedString); CTLineRef truncatedLine = CTLineCreateTruncatedLine(line, 50.0, kCTLineTruncationEnd, NULL); CFRange lineRange = CTLineGetStringRange(line); CFRange truncatedLineRange = CTLineGetStringRange(truncatedLine);
My lineRange is the same as truncatedLineRange. Why? The documentation makes no mention of this.