草庐IT

CTFramesetter

全部标签

ipad - 为什么我不能在应用程序不崩溃的情况下释放我的 CTFramesetter?

我正在构建一个iPad应用程序,它呈现来自NSAttributedString的文本页面。我创建了一个像这样的框架setter:-(void)renderTextFromAttributedString:(NSAttributedString*)string{CFAttributedStringRefattrString=(CFAttributedStringRef)string;framesetter=CTFramesetterCreateWithAttributedString(attrString);CFRelease(attrString);...然后代码添加新的页面View,