我有一个被覆盖的NSTextAttachment子类 attachmentBoundsForTextContainer:proposedLineFragment:glyphPosition:characterIndex: imageForBounds:textContainer:characterIndex:.
attachmentBoundsForTextContainer:proposedLineFragment:glyphPosition:characterIndex:
imageForBounds:textContainer:characterIndex:
我需要在某些时候重新绘制附件.调用setNeedsDisplayUITextView不起作用.
setNeedsDisplay
有任何想法吗?我想避免重新创建附件和/或属性字符串.
uitextview nstextattachment ios
ios ×1
nstextattachment ×1
uitextview ×1