UIActivityViewController excludeActivityTypes不起作用

时间:2019-01-21 01:43:26

标签: ios swift uiactivityviewcontroller

我要排除微博和微信,并设置以下代码:

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]

还有其他方法可以排除它们吗?谢谢

0 个答案:

没有答案