0
votes

When I share [image, url, text] as the activity items, in iOS 9 it appears as 3 separate items in the text message. In iOS 10, sharing a link from Safari shows an image with the website name. How is this done?

Here is Code,

NSArray *items = @[datTextString,url,image ]; 
UIActivityViewController *shareController = [[UIActivityViewController alloc] initWithActivityItems:items applicationActivities:nil];

iOS 10

iOS 9

1
Please add the code for UIActivityViewController that you have tried. - KAR
NSArray *items = @[datTextString,url,image ]; UIActivityViewController *shareController = [[UIActivityViewController alloc] initWithActivityItems:items applicationActivities:nil]; - user2966092

1 Answers

0
votes

This is the default behavior of iOS 10 to display the thumbnail view of the URL.