UIActivityViewController Hide More from Actions

2020-08-26 03:05发布

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?

UIActivityViewController More Button

This is how I initialize it:

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

1条回答
迷人小祖宗
2楼-- · 2020-08-26 03:39

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

查看更多
登录 后发表回答