首页 > 解决方案 > Sharing two image and two text in UIActivityViewController is not working properlly

问题描述

Sharing two image and two text in UIActivityViewController is not working properlly.

Following is my code.

NSString *title1 = @"up thumbs";
NSString *title2 = @"down thumbs";
UIImage *image1 = [UIImage imageNamed:@"up-thumbs"];
UIImage *image2 = [UIImage imageNamed:@"down-thumbs"];

UIActivityViewController* activityViewController =[[UIActivityViewController alloc] initWithActivityItems:@[title1, image1, title2, image2] applicationActivities:nil];

Share in email it display as following but my need is display first title1 then image1 then title2 then image2.

enter image description here

Share in notes it display as following. It display only title1 not display title2 and both image is same space.

How display both title and both image separate.

enter image description here

how to solve this problem.

Please help me!

标签: iosobjective-cuiimageuiactivityviewcontroller

解决方案


推荐阅读