I have subclassed UIActivityItemProvider to be able to choose what to do if the user selects Facebook or Twitter or Mail, etc. But I can only use text or an image in a function element - (id), I donβt know how to share both text and image, for example.
If I read the tutorials, I know how to do this for all sharing options, but I don't want all sharing options to have an image or link or text:
NSArray* dataToShare = @[someText, [NSURL URLWithString:url], image]; UIActivityViewController* activityViewController = [[UIActivityViewController alloc] initWithActivityItems:dataToShare applicationActivities:nil];
source share