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