UIActivityViewController Hide More from Actions

2020-08-26 03:48发布

问题:

When I initialize the UIActivityViewController and disable all actions, I still see a More button under the actions bar. Is there a way to remove it?

This is how I initialize it:

let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil)
activityVC.excludedActivityTypes = [UIActivityTypeAirDrop, UIActivityTypeAddToReadingList,UIActivityTypeCopyToPasteboard,UIActivityTypeSaveToCameraRoll,UIActivityTypePrint,UIActivityTypeAssignToContact,UIActivityTypeCopyToPasteboard]

回答1:

No, this is the button where the user choose to enable app extensions, and you are not allowed to hide extension the user chose to display