ios 一次分享多张图片到微信
2021-10-18 本文已影响0人
一代枭雄
UIImage*imageToShare = [UIImageimageNamed:@"1.jpg"];
UIImage*imageToShare1 = [UIImageimageNamed:@"2.jpg"];
NSArray*activityItems = @[imageToShare,imageToShare1];
UIActivityViewController*activityVC = [[UIActivityViewControlleralloc]initWithActivityItems:activityItems applicationActivities:nil];
[self presentViewController:activityVC animated:TRUE completion:nil];