在whatsapp中分享多个视频

时间:2015-09-03 07:41:24

标签: ios objective-c uiactivityviewcontroller whatsapp

我想在whatsapp中分享多个视频。我是使用UIActivityViewController进行的。首先我将视频存储在iPhone上并发送URL(NSURL)。如果我发送一个URL它可以工作但如果我发送多个URL它不起作用.UIActivityViewController也没有显示whatsapp图标。

NSURL *urlOne = url;
NSURL *urlTwo = url;

NSArray *items  = [NSArray arrayWithObjects:urlOne,urlTwo,nil];

UIActivityViewController *controller = [[UIActivityViewController alloc] initWithActivityItems:items applicationActivities:nil];
NSArray *excludedActivities = @[UIActivityTypePostToWeibo,UIActivityTypeMail,
                                UIActivityTypePrint, UIActivityTypeCopyToPasteboard,
                                UIActivityTypeAssignToContact,UIActivityTypePostToFlickr,
                                UIActivityTypePostToVimeo,UIActivityTypeAirDrop, UIActivityTypePostToTencentWeibo];
controller.excludedActivityTypes = excludedActivities;
[self presentViewController:controller animated:YES completion:nil]; 

我想知道,whatsapp支持多个视频共享,是否支持如何操作?

1 个答案:

答案 0 :(得分:1)

您可以一次分享一个视频。请参阅这篇文章:https://stackoverflow.com/a/23295817/1242673