Ios 如果在第三方插件内调用,如何在UIDocumentInteractionController中使用PresentOptions MenuFromRect

Ios 如果在第三方插件内调用,如何在UIDocumentInteractionController中使用PresentOptions MenuFromRect,ios,objective-c,iphone,mobile,ios7,Ios,Objective C,Iphone,Mobile,Ios7,我在Appcelerator中开发了abn应用程序。 我想显示可用于打开已下载并存储在应用程序缓存文件夹中的文档的应用程序选项/列表 但每当我使用此代码打开它时: NSFileManager *fileManager = [NSFileManager defaultManager]; NSArray *directoryPaths = NSSearchPathForDirectoriesInDomains (NSCachesDirectory, NSUserDo

我在Appcelerator中开发了abn应用程序。
我想显示可用于打开已下载并存储在应用程序缓存文件夹中的文档的应用程序选项/列表

但每当我使用此代码打开它时:

    NSFileManager *fileManager = [NSFileManager defaultManager];
    
    NSArray *directoryPaths = NSSearchPathForDirectoriesInDomains
    (NSCachesDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectoryPath = [directoryPaths objectAtIndex:0];
    NSString *filePath = [documentsDirectoryPath stringByAppendingPathComponent:fileName];
    
//    _docController = [[UIDocumentInteractionController alloc]init];
//
    if ([fileManager fileExistsAtPath:filePath]==YES) {
       NSLog(@"File exists");
        self._docController = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:filePath]];
        self._docController.delegate=self;
        [self._docController presentOptionsMenuFromRect:self.view.frame inView:self.view animated:YES];
        return true;
    }else{
        NSLog(@"Failed to show Open In menu");
        return false;
    }
我得到这个错误:

NSInvalidArgumentException *** -[__NSPlaceholderArray initWithObjects:count:] attempt to insert nil object from objects[0]

有人能帮我吗?

Hi-你能发布更多错误信息吗,例如,它是否真的在错误发生之前打印出
文件存在的部分。还有,你为什么要做self.\u docController
?那不应该是没有下划线的self.docController吗?在Objective-C中,通常
self.x
\ux
右侧相同。