Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 是否重用使用CTFramesetterCreateWithAttributedString()创建的CTFrameSetter?_Ios_Objective C_Cocoa_Core Text - Fatal编程技术网

Ios 是否重用使用CTFramesetterCreateWithAttributedString()创建的CTFrameSetter?

Ios 是否重用使用CTFramesetterCreateWithAttributedString()创建的CTFrameSetter?,ios,objective-c,cocoa,core-text,Ios,Objective C,Cocoa,Core Text,我曾多次提到framesetter“昂贵”。我有两个不同的属性字符串,它们彼此独立排列,有没有办法“重用”framesetter?CTFramesetterCreateWithAttributedString和CTFramesetterCreateFrame都返回一个不可变的对象。不幸的是,我们无法重用它们

我曾多次提到framesetter“昂贵”。我有两个不同的属性字符串,它们彼此独立排列,有没有办法“重用”framesetter?

CTFramesetterCreateWithAttributedString和
CTFramesetterCreateFrame
都返回一个不可变的对象。不幸的是,我们无法重用它们