我正在使用'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
答案 0 :(得分:0)
我不确定这是否有帮助,但是如果我没有正确地链接我的视图控制器或者需要强制解开一个值而没有,我通常会收到该错误。