UIActivityViewController - sharing text, url, image shown differently on iOS 10

1.1k views Asked by At

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

There are 1 answers

1
Gurdev Singh On

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