相关疑难解决方法(0)

使用属性文本在UITextView中重绘NSTextAttachments

我有一个被覆盖的NSTextAttachment子类
attachmentBoundsForTextContainer:proposedLineFragment:glyphPosition:characterIndex:
imageForBounds:textContainer:characterIndex:.

我需要在某些时候重新绘制附件.调用setNeedsDisplayUITextView不起作用.

有任何想法吗?我想避免重新创建附件和/或属性字符串.

uitextview nstextattachment ios

7
推荐指数
1
解决办法
2227
查看次数

标签 统计

ios ×1

nstextattachment ×1

uitextview ×1