1

I'm using sample code from [https://developer.apple.com/library/content/samplecode/DocInteraction/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010052]

Run the above code, open the .txt file, long press on any text, the text gets selected and you will see a context menu with options "copy/look up/share etc" as in the pictureenter image description here

I do not want to show the "Share" option in this context menu. I tried to remove the long press completely etc, but nothing seems to work.

Any ideas? Thanks!

user1165756
  • 375
  • 3
  • 11
  • 1
    That's a common, system-wide iOS feature, and isn't meant to be disabled or hidden. – Raffael Mar 06 '18 at 10:03
  • For security reasons in our app, I'm trying to do that! When you open pdf document, you do not see the share button. I need something similar! – user1165756 Mar 06 '18 at 14:34

1 Answers1

0

Instead of QLPreviewController, used WKWebview to preview docs. Used Insert CSS into loaded HTML in UIWebView / WKWebView to disable user interaction.

user1165756
  • 375
  • 3
  • 11