ios - UIDocumentInteractionController Disable Options Menu -


i have pdf showing in uidocumentinteractioncontroller , great.

problem is, point of app protect pdf being shared etc. hence want rid of options button appears.

there 1000 similar q's on stack, before go linking me have read please keep in mind need ios6 solution.

i have tried implementing willshowmenu related functions, , bunch of other stuff.

end of day, needs onto store, , know how rigid apple are, if has solid store-aproved ios6 solution great.

if not, point me in right direction , work out. there alternative uidocumentinteractioncontroller display (but copy protecting) pdfs?

thanks.

you can use uiwebview display pdf file.

to disable copy menu, add following code in webviewdidfinishload delegate of uiwebview

[webview stringbyevaluatingjavascriptfromstring:@"document.documentelement.style.webkituserselect='none';"]; [webview stringbyevaluatingjavascriptfromstring:@"document.documentelement.style.webkittouchcallout='none';"] 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -