iOS, Objective -C How to Hide/remove UIDocumentInteractionController bar/share button from iPad?

458 Views Asked by At

I am showing a powerpoint file via UIDocumentInteractionController (Objective - C). The client needs to remove bar/share button from the navigation bar. I have tried and follow much instruction which I found on Google. But all are not working in my case. What I tried:

  1. Hide status bar when using UIDocumentInteractionController?
  2. UIDocumentInteractionController remove Actions Menu
  3. Can I hide the Action button on the UIDocumentInteractionController view?enter image description here

My Code:

 if ([documentType isEqualToString:DOC_TYPE_PPTX]) {


                self.documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:documentUrl];

                // Configure Document Interaction Controller
                [self.documentInteractionController setDelegate:self];

                // Preview PDF
                [self.documentInteractionController presentPreviewAnimated:YES];


            }

If not possible to hide/remove this share button then please suggest me another custom library/framework for show powerpoint file without share button in objective - C. Thanks in advance. Any suggestion will be Great.

0

There are 0 best solutions below