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

问题描述

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

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

推荐答案

您应检查Oliver Drobnik的。正是对这个问题的回应。另请参见。

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映射到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 17:46