¡@

Home 

2014/10/15 ¤U¤È 10:04:10

iphone Programming Glossary: attributedstringref

Memory usage grows with CTFontCreateWithName and CTFramesetterRef

http://stackoverflow.com/questions/8491841/memory-usage-grows-with-ctfontcreatewithname-and-ctframesetterref

function. The retain count of my font is 2 when i leave the function. Here is the code CFMutableAttributedStringRef attributedStringRef CFAttributedStringCreateMutable kCFAllocatorDefault 0 CFAttributedStringBeginEditing attributedStringRef CFAttributedStringReplaceString.. attributedStringRef CFAttributedStringCreateMutable kCFAllocatorDefault 0 CFAttributedStringBeginEditing attributedStringRef CFAttributedStringReplaceString attributedStringRef CFRangeMake 0 0 CFStringRef label.text font CTFontCreateWithName CFStringRef.. kCFAllocatorDefault 0 CFAttributedStringBeginEditing attributedStringRef CFAttributedStringReplaceString attributedStringRef CFRangeMake 0 0 CFStringRef label.text font CTFontCreateWithName CFStringRef label.fontName label.fontHeight NULL retain..