如何在iOS的NSAttributedString中将HTML映射到 [英] How to map HTML to in NSAttributedString in iOS

查看:76
本文介绍了如何在iOS的NSAttributedString中将HTML映射到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于NSAttributedString initWithHTML添加仅在Mac OS上可用,而在iOS上不可用。

Since the NSAttributedString initWithHTML addtion is only availiable on Mac OS but not iOS.

推荐答案

您应检查Oliver Drobnik的 HTML的NSAttributedString添加项。正是对这个问题的回应。另请参见他的博客文章

You should check Oliver Drobnik's NSAttributedString Additions for HTML project on GitHub. It is a response to precisely that problem. See also his blog post about it.

这篇关于如何在iOS的NSAttributedString中将HTML映射到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆