我正在使用“AlamofireImage”吊舱并在集合视图单元格中显示图像,但客户端想要共享图像我正在使用它但无法正常工作:
var shareImages = [UIImage]()
shareImages = [UIImage(named: "http://idea-factory.in/images/25-021.jpg")] as! [UIImage];
let activityViewController:UIActivityViewController = UIActivityViewController(activityItems: shareImages, applicationActivities: nil)
let excludedTypes: [UIActivity.ActivityType] = [.postToVimeo, .postToTwitter, .assignToContact, .saveToCameraRoll]
activityViewController.excludedActivityTypes = excludedTypes
self.present(activityViewController, animated: true, completion: nil)
错误来了:线程1:信号SIGABRT