![](/img/trans.png)
[英]Set highlighted text color for UILabel using NSAttributedString.?
[英]how to set Image using NSAttributedString
我可以使用NSAttributedString將圖像設置為相應的子字符串嗎?如果可以,怎么辦?
不能。CoreText引擎使用的NSAttributedString僅支持格式化文本。 如果需要嵌入圖像,則需要使用第三方渲染代碼,例如TTStyledTextLabel 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.