Current implementation.
UIWebView
is added to a view and file is loaded in that. Here I can control copy option with "UILongPressGestureRecognizer
" and also control whether to allow sharing with other apps using "documentInteractionController presentOpenInMenuFromRect"
.
Problem
But MS word or Excel password protected files cannot be opened in UIWebView
.
Solution
Solution I found to this protected file is open them using "qlpreviewcontroller
" or "UIDocumentInteractionController
"
But I cant figure out a way to still control thos copy and share with other apps behaviour.