如何使用可点击链接在Swift上呈现HTML?
我正在尝试使用以下代码执行此操作:如何使用可点击链接在Swift上呈现HTML?,html,swift,webview,render,Html,Swift,Webview,Render,我正在尝试使用以下代码执行此操作: let attrStr = try! NSAttributedString( data: contentLabel.dataUsingEncoding(NSUnicodeStringEncoding, allowLossyConversion: true)!, options: [ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType],
let attrStr = try! NSAttributedString(
data: contentLabel.dataUsingEncoding(NSUnicodeStringEncoding, allowLossyConversion: true)!,
options: [ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType],
documentAttributes: nil)
它正确地呈现为HTML,但链接不起作用
我做错了什么