我试过这个示例代码:
let websiteURL = "https://www.w3schools.com"
let htmlText = "<html><a href=\(websiteURL)>" +
"<img border="+"0"+" src= \(websiteURL)" + " width=100" + " height=100>"
+ "</a></html>"
testOBJ = NSArray(objects: SHARING_TEXT,htmlText)
let activityViewController = UIActivityViewController(activityItems: testOBJ as! [AnyObject], applicationActivities: nil)
presentViewController(activityViewController, animated: true, completion: nil)
它无法正常显示文字,因为它在Facebook上