gpt4 book ai didi

html - Cocoa:从字符串显示 HTML

转载 作者:太空宇宙 更新时间:2023-11-04 14:08:33 25 4
gpt4 key购买 nike

如何从 NSString 中显示格式正确的文本,恰好是 HTML。 html 来自堆栈溢出 API。

最佳答案

您可以 create a NSAttributedString from HTML .然后像绘制任何其他 NSAttributedString 一样绘制它。

关于html - Cocoa:从字符串显示 HTML,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2755770/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com