加载文档时 UIDocumentInteractionControllerDelegate 检查

UIDocumentInteractionControllerDelegate check when document is loaded

当文档在预览中完全加载时,调用 UIDocumentInteractionControllerDelegate 的哪个委托函数?
只是为了分享,我已经尝试过:

- (void)documentInteractionControllerDidEndPreview:(UIDocumentInteractionController *)controller  

当我们关闭预览时调用它。

这有点变通,因为据我所知,文档中似乎没有针对此的完成处理程序。

-(void)presentDocument:(NSURL*)url{
        UIDocumentInteractionController *docInteration = [UIDocumentInteractionController interactionControllerWithURL:url];
        docInteration.UTI = @"com.adobe.pdf";
        docInteration.delegate = self;
        [docInteration presentPreviewAnimated:YES];
}

-(void)documentInteractionControllerDidEndPreview: (UIDocumentInteractionController *)controller{
    [self.navigationController dismissViewControllerAnimated:NO completion:nil];
}

- (UIViewController *)documentInteractionControllerViewControllerForPreview:(UIDocumentInteractionController *)controller{

    UIViewController * vc = [[UIViewController alloc]init];
    [self.navigationController presentViewController:vc
                                            animated:YES
                                          completion:^{
                                              //This is ran once the document animation has completed
                                          }];
    return vc;
}

希望对您有所帮助。
卢克