Ios 从UIDocumentInteractionController隐藏共享选项

Ios 从UIDocumentInteractionController隐藏共享选项,ios,objective-c,uidocumentinteraction,Ios,Objective C,Uidocumentinteraction,在我的应用程序中,我需要向用户显示一些pdf文件。为此,我使用: .h // Document interaction controller @property (nonatomic, strong) UIDocumentInteractionController *docViewer; .m _docViewer = [[UIDocumentInteractionController alloc] init]; _docViewer.delegate = self;

在我的应用程序中,我需要向用户显示一些pdf文件。为此,我使用:

.h
// Document interaction controller
@property (nonatomic, strong) UIDocumentInteractionController *docViewer;

.m
_docViewer            = [[UIDocumentInteractionController alloc] init];
_docViewer.delegate   = self;
_docViewer.URL        = [NSURL fileURLWithPath:@"my file path"]];
[_docViewer presentPreviewAnimated:YES];
一切正常。但问题是我在文档交互控制器中获得了一个股票期权


我不想在文档交互控制器中显示股票期权。可能吗?我检查了类参考文档,没有找到任何隐藏该选项的属性。

可能需要使用自定义PDF阅读器VC。 这个更新了很多

如果我没有错,我理解您希望从文档交互视图控制器中删除“共享”按钮。我就在这里吗?@Dharmeshiddhpura:是的,就我看来你是对的,你不能在iOS 8上隐藏或删除这个共享按钮。在iOS 7中,我使用了QLPreviewController,然后从它的导航控制器中,我使RightBarButtonim=nil。但现在这也不可能。我已经删除了我的答案。@Dharmeshiddhpura:谢谢你宝贵的时间和信息:)