我要排除微博和微信,并设置以下代码:
let av = UIActivityViewController(activityItems: items, applicationActivities:nil)
av.excludedActivityTypes = [.postToWeibo, .postToTencentWeibo]
self.present(av, animated: true)
无论我做什么,这两个应用程序仍显示在UIActivityViewController上。但是排除mail和copyToPasteboard都是可行的
av.excludedActivityTypes = [.postToWeibo, .postToTencentWeibo, .copyToPasteboard, .mail]
还有其他方法可以排除它们吗?谢谢