从UIActivityController中排除Facebook Messenger,Instagram和whatsapp的最佳方法是什么

最佳答案

尝试这个:

activityController.excludedActivityTypes = [
    UIActivity.ActivityType(rawValue: "net.whatsapp.WhatsApp.ShareExtension"),
    UIActivity.ActivityType(rawValue: "com.facebook.Messenger.ShareExtension"),
    UIActivity.ActivityType(rawValue: "com.burbn.instagram.shareextension")

]

10-08 17:02