UIActivityViewController 从操作中隐藏更多内容
UIActivityViewController Hide More from Actions
当我初始化 UIActivityViewController 并禁用所有操作时,我仍然在操作栏下方看到一个“更多”按钮。有办法去除吗?
我是这样初始化的:
let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil)
activityVC.excludedActivityTypes = [UIActivityTypeAirDrop, UIActivityTypeAddToReadingList,UIActivityTypeCopyToPasteboard,UIActivityTypeSaveToCameraRoll,UIActivityTypePrint,UIActivityTypeAssignToContact,UIActivityTypeCopyToPasteboard]
不,这是用户选择启用应用扩展的按钮,您不能隐藏用户选择显示的扩展
当我初始化 UIActivityViewController 并禁用所有操作时,我仍然在操作栏下方看到一个“更多”按钮。有办法去除吗?
我是这样初始化的:
let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil)
activityVC.excludedActivityTypes = [UIActivityTypeAirDrop, UIActivityTypeAddToReadingList,UIActivityTypeCopyToPasteboard,UIActivityTypeSaveToCameraRoll,UIActivityTypePrint,UIActivityTypeAssignToContact,UIActivityTypeCopyToPasteboard]
不,这是用户选择启用应用扩展的按钮,您不能隐藏用户选择显示的扩展