ios - iOS,Objective -C 如何从 iPad 隐藏/删除 UIDocumentInteractionController 栏/共享按钮?
问题描述
我正在通过 UIDocumentInteractionController (Objective - C) 显示一个 powerpoint 文件。客户端需要从导航栏中删除栏/共享按钮。我已经尝试并遵循我在 Google 上找到的许多说明。但在我的情况下,一切都不起作用。我尝试了什么:
- 使用 UIDocumentInteractionController 时隐藏状态栏?
- UIDocumentInteractionController 移除操作菜单
- 我可以隐藏 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。提前致谢。任何建议都会很棒。
解决方案
推荐阅读
- django - 带有 JWT 身份验证实现的 Django GraphQL API 仍然允许来自 Postman 的未经身份验证的请求获取数据。我该如何解决?
- angular - 使用 valueChanges 监听嵌套 FormGroup 下的任何字段更改
- model - 如何在 Papyrus (SysML) 中为特定领域的建模创建“模型库”?
- excel - 复杂的在重复中查找行显示 A 或 B 或 C 列
- r - 使用 dplyr 按两个因素分组
- reactjs - ApolloClient/React/TypeScript,拖放缓存更新导致意外重新渲染
- flutter - 在颤振项目中自动创建重复文件
- javascript - 如何在 ReactJS 中使用 TypeScript 和 forwardRef?
- sql - 检查用户是否在某些操作后未登录
- wpf - 绑定到 WPF GridViewHeader 中的元素不起作用