0

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.

Bhavesh Nayi
  • 3,626
  • 1
  • 27
  • 42
Ravi
  • 800
  • 2
  • 12
  • 28
  • 1
    Possible duplicate : https://stackoverflow.com/questions/35116820/uidocumentinteractioncontroller-remove-actions-menu – Jamil Apr 03 '19 at 04:55
  • @ Jamil. This is not duplicate. I have already tried much advice including which you have shared. This is not worked for me including other advice. That's why I have asked this question. Please check my 2nd number URL. – Ravi Apr 03 '19 at 05:00
  • 1
    Finally, I have fixed this issue via webView. My code: NSURLRequest *request = [NSURLRequest requestWithURL:self.URLLoadOnWebView]; [self.webView loadRequest:request]; [MBProgressHUD showHUDAddedTo:self.view animated:YES]; – Ravi Apr 03 '19 at 06:50

0 Answers0