0
votes

I was wondering if you can remove the mail option from the share menu in a QLPreviewController? I have searched up and down the documentation but couldnt find anything.

1

1 Answers

1
votes

All you can do is remove the share button completely via viewDidAppear:

[self.navigationItem setRightBarButtonItem:nil];

Then you can create your own button that handles its on UIActivityViewController items with different activities that exclude mail.

See something like this for more info on creating that: https://www.captechconsulting.com/blog/steven-beyers/cocoaconf-dc-recap-sharing-uiactivityviewcontroller