UIActivityViewController 隐藏更多动作 [英] UIActivityViewController Hide More from Actions

查看:37
本文介绍了UIActivityViewController 隐藏更多动作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我初始化 UIActivityViewController 并禁用所有操作时,我仍然在操作栏下看到一个更多按钮.有什么办法可以去掉吗?

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]

推荐答案

不,这是用户选择启用应用扩展的按钮,不允许隐藏用户选择显示的扩展

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

这篇关于UIActivityViewController 隐藏更多动作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆