使用UIActivityViewController共享5个以上的图像 [英] Share more than 5 images with UIActivityViewController

查看:161
本文介绍了使用UIActivityViewController共享5个以上的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经与UIActivityViewController集成,可以将图像分享到Facebook:

I have integrated with UIActivityViewController for sharing images to Facebook:

NSArray* dataToShare = imageArray;  //This is my image array
activityViewController =
        [[UIActivityViewController alloc] initWithActivityItems:dataToShare
                                          applicationActivities:nil];
[[[self parentViewController] parentViewController] presentViewController:activityViewController animated:YES completion:nil];

共享工作正常,但共享多个图像时出现问题。如果有超过5张图像,它只共享前5张图像;其余的都被忽略了。将图像保存到相机胶卷时会出现同样的问题,但对于邮件编辑器,所有图像都在那里。

Sharing is working fine, but there is a problem while sharing multiple images. If there are more than 5 images, it only shares the first 5; the rest are ignored. The same problem occurs while saving the images to the camera roll, but for mail composer, all the images are there.

如何解决此问题?

推荐答案

实际上在Photos.app中的行为是一样的。

The behaviour is the same in Photos.app actually.

我是不确定它背后的原因是什么,但这就是Apple在自己的应用程序中如何做到这一点。所以我猜它是有意的。

I'm not sure what the reasoning behind it is but that's how Apple does it as well in their own apps. so I'm guessing it is intended.

这篇关于使用UIActivityViewController共享5个以上的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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