Working with some CoreText code on iOS, and I'm confused why this is a CTFrame override. I confirmed that this is a re-release, but I'm confusing because it was created using the create method.
for (NSValue *value in [self frameArray]) { CGRect column = [value CGRectValue]; CGMutablePathRef path = CGPathCreateMutable(); CGPathAddRect(path, NULL, column); CTFrameRef frame = CTFramesetterCreateFrame(bodyFramesetter, CFRangeMake(position, 0), path, NULL); CTFrameDraw(frame, context); position += CTFrameGetVisibleStringRange(frame).length; CGPathRelease(path);
Update
The code base is 3.2, and the crash does not occur in the first release. This happens "randomly" at some point when drawing the view. This loop, as you might guess, is in -drawRect: views. There is no multithreading in this application.
objective-c core-text
Marcus S. zarra
source share