我有一个非常快速的初学者问题:我如何让这个功能共享一个URL?我总是遵循一切,并认为我做对了,但它似乎没有工作......非常感谢提前!
func takeSnapshot(view: UIView) {
let bounds = UIScreen.mainScreen().bounds
UIGraphicsBeginImageContextWithOptions(bounds.size, true, 0.0)
self.view.drawViewHierarchyInRect(bounds, afterScreenUpdates: false)
let image = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
let text = "Text to be shared... #Hashtag"
let activityViewController = UIActivityViewController(activityItems: [image, text], applicationActivities: nil)
self.presentViewController(activityViewController, animated: true, completion: nil)
答案 0 :(得分:0)
只需添加Identity
:
Application Pool