故事应用程序接收带有在CMS中编辑的html标签的字符串。应用程序接收该字符串并放入UILabel。不久前,html标签被添加到这个字符串中。显然带有html标签的字符串在站点中看起来不错。我进行了调查,发现我们可以为UILabel使用属性字符串。//attributesdictionaryNSDictionary*attrs=@{NSDocumentTypeDocumentAttribute:NSHTMLTextDocumentType,};NSAttributedString*attrString=[[NSAttributedStringalloc]initWithData:[te