首页 > 解决方案 > iOS,Objective -C 如何从 iPad 隐藏/删除 UIDocumentInteractionController 栏/共享按钮?

问题描述

我正在通过 UIDocumentInteractionController (Objective - C) 显示一个 powerpoint 文件。客户端需要从导航栏中删除栏/共享按钮。我已经尝试并遵循我在 Google 上找到的许多说明。但在我的情况下,一切都不起作用。我尝试了什么:

  1. 使用 UIDocumentInteractionController 时隐藏状态栏?
  2. UIDocumentInteractionController 移除操作菜单
  3. 我可以隐藏 UIDocumentInteractionController 视图上的操作按钮吗?在此处输入图像描述

我的代码:

 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];


            }

如果无法隐藏/删除此共享按钮,请向我推荐另一个自定义库/框架,用于在目标中显示没有共享按钮的 powerpoint 文件 - C。提前致谢。任何建议都会很棒。

标签: iosobjective-cpowerpointuidocumentinteractionqlpreviewcontroller

解决方案


推荐阅读