UIActivityViewController从动作中隐藏更多内容

时间:2015-03-29 18:25:42

标签: ios swift uiactivityviewcontroller

当我初始化UIActivityViewController并禁用所有操作时,我仍然会在操作栏下看到“更多”按钮。有没有办法删除它?

UIActivityViewController More Button

这是我初始化它的方式:

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

1 个答案:

答案 0 :(得分:1)

不,这是用户选择启用应用扩展程序的按钮,您不能隐藏用户选择显示的扩展程序