我在 while 循环中使用 CTFramesetter,就像下面的代码一样
CTFramesetterRef frameSetter = CTFramesetterCreateWithAttributedString((__bridge CFAttributedStringRef) attrString);
while (hasMorePages) {
...
if (buffer run out) {
attrString = following Attributed String
CFRelease(frameSetter);
// following line takes several minutes.
frameSetter = CTFramesetterCreateWithAttributedString((__bridge CFAttributedStringRef) attrString);
}
}
我的环境是 iOS 6.1 模拟器。有谁知道它有什么问题?
属性字符串中的文本是中文。