UIActivityViewController排除所有UIActivityCategoryAction [英] UIActivityViewController exclude all UIActivityCategoryAction

查看:332
本文介绍了UIActivityViewController排除所有UIActivityCategoryAction的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实例化了 UIActivityViewController 。方便的是,我可以排除个人活动类型使用属性 excludedActivityTypes

I have instantiated a UIActivityViewController. Conveniently, I can exclude individual activity types using the property excludedActivityTypes.

我现在要排除活动类别 UIActivityCategoryAction 。如何排除活动类别,而不是单个活动类型?

I now want to exclude the activity category UIActivityCategoryAction. How can I exclude an activity category, as opposed to an individual activity type?

推荐答案

根据当前文档,您不能但你可以构建一个包含所有单独类型的 UIActivityCategory 的数组,并将其传递给 excludedActivityTypes 属性。

As per current documentation, you can't but you could build an array holding all the individual types of an UIActivityCategory and pass it to the excludedActivityTypes property.

如果您担心随着时间的推移,Apple可能会添加新的活动类型,而您的 UIActivityViewController 将显示新类型,不要因为除非您使用新SDK更新应用程序,否则不会发生这种情况。所以你在这方面很安全。

If you fear that over time Apple could add new activity types and your UIActivityViewController will show the new types, fear not because it will not happen unless you update the app using the new SDK. So you're safe in this regard.

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

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