iOS 8 - 禁用iCloud照片共享活动 [英] iOS 8 - Disable iCloud Photo Sharing Activity

查看:89
本文介绍了iOS 8 - 禁用iCloud照片共享活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

显然iOS8默认情况下会向iOS8中的活动视图添加iCloud Photo Sharing活动,但我没有找到任何有用的文档,特别是如何明确删除它(进入更多选项允许用户切换显示/隐藏它,但对于我们的应用程序,我们希望完全禁止此选项)。

Apparently iOS8 by default adds a "iCloud Photo Sharing" activity to activity views in iOS8 and I haven't found any useful documentation regarding it, especially how to explicitly remove it (going into the "More" option allows the user to toggle showing/hiding it, but for our app we want to completely disallow this option).

有没有人想过如何禁用它?任何输入将不胜感激。谢谢!

Has anyone figured anything out about how to disable this? Any input would be appreciated. Thanks!

推荐答案

如果您使用完整图像初始化UIActivityViewController,则iCloud共享设置为活动类型默认。您可以在activityItems数组中添加一个字符串。此举将导致iCloud共享从activityTypes中删除。

If you init your UIActivityViewController with full of images, iCloud sharing set to activity types by default. You can add a string in your activityItems array. This move will cause that iCloud sharing to be removed from activityTypes.

NSArray *Items   = [NSArray arrayWithObjects: image1, image2, @"", nil];
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:Items applicationActivities:nil];

这篇关于iOS 8 - 禁用iCloud照片共享活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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