问题
Since the NSAttributedString initWithHTML addtion is only availiable on Mac OS but not iOS.
回答1:
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.
来源:https://stackoverflow.com/questions/4075223/how-to-map-html-to-in-nsattributedstring-in-ios