Hide the share option in context menu on text selection in QLPreviewController
up vote
0
down vote
favorite
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 picture
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!
ios qlpreviewcontroller
add a comment |
up vote
0
down vote
favorite
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 picture
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!
ios qlpreviewcontroller
That's a common, system-wide iOS feature, and isn't meant to be disabled or hidden.
– Raffael
Mar 6 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 6 at 14:34
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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 picture
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!
ios qlpreviewcontroller
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 picture
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!
ios qlpreviewcontroller
ios qlpreviewcontroller
asked Mar 6 at 4:28
user1165756
23039
23039
That's a common, system-wide iOS feature, and isn't meant to be disabled or hidden.
– Raffael
Mar 6 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 6 at 14:34
add a comment |
That's a common, system-wide iOS feature, and isn't meant to be disabled or hidden.
– Raffael
Mar 6 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 6 at 14:34
That's a common, system-wide iOS feature, and isn't meant to be disabled or hidden.
– Raffael
Mar 6 at 10:03
That's a common, system-wide iOS feature, and isn't meant to be disabled or hidden.
– Raffael
Mar 6 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 6 at 14:34
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 6 at 14:34
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Instead of QLPreviewController, used WKWebview to preview docs. Used Insert CSS into loaded HTML in UIWebView / WKWebView to disable user interaction.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Instead of QLPreviewController, used WKWebview to preview docs. Used Insert CSS into loaded HTML in UIWebView / WKWebView to disable user interaction.
add a comment |
up vote
0
down vote
Instead of QLPreviewController, used WKWebview to preview docs. Used Insert CSS into loaded HTML in UIWebView / WKWebView to disable user interaction.
add a comment |
up vote
0
down vote
up vote
0
down vote
Instead of QLPreviewController, used WKWebview to preview docs. Used Insert CSS into loaded HTML in UIWebView / WKWebView to disable user interaction.
Instead of QLPreviewController, used WKWebview to preview docs. Used Insert CSS into loaded HTML in UIWebView / WKWebView to disable user interaction.
answered Nov 7 at 20:26
user1165756
23039
23039
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f49123388%2fhide-the-share-option-in-context-menu-on-text-selection-in-qlpreviewcontroller%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
That's a common, system-wide iOS feature, and isn't meant to be disabled or hidden.
– Raffael
Mar 6 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 6 at 14:34