@lvcloud
2016-09-08T05:12:33.000000Z
字数 273
阅读 309
swift
xcode
let attrStr = try! NSAttributedString(data: "<p>日本語</p>".dataUsingEncoding(NSUnicodeStringEncoding, allowLossyConversion: true)!, options: [NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType], documentAttributes: nil)
tempLabel.attributedText = attrStr