I use to use UIDocumentInteractionController
and UIActivityViewController
to share data with a special UTI
.
However, when other app use Share Extension
, there will may options when share interface popup, such as copy tp xxx
and import to xxx
.
How can i disable those options or is there any other way can share data to Specified app which i can control.
//======= my code is like this:
UIActivityViewController *activity = [[UIActivityViewController alloc] initWithActivityItems:@[itemUrl] applicationActivities:nil];
activity.excludedActivityTypes = @[UIActivityTypePostToFacebook, UIActivityTypePostToFacebook,UIActivityTypePostToWeibo,
UIActivityTypeMessage, UIActivityTypeMail, UIActivityTypePrint, UIActivityTypeCopyToPasteboard,
UIActivityTypeAssignToContact, UIActivityTypeSaveToCameraRoll, UIActivityTypeAddToReadingList,
UIActivityTypePostToFlickr, UIActivityTypePostToFlickr, UIActivityTypePostToFlickr,
UIActivityTypeAirDrop];
[self presentViewController:activity animated:YES completion:NULL];