1
在以前的iOS中,我使用此代码和UIDocumentInteractionController从我的应用程序,与另一个应用程序打开文件。从iOS 9开始,UIDocumentInteractionController出现在屏幕上,我选择“复制到”选项,但没有任何反应。我该如何解决这个问题?iOS 9 UIDocumentInteractionController不会打开文件与应用程序
NSURL *URL = [NSURL fileURLWithPath:path];
if (URL != nil) {
// Initialize Document Interaction Controller
documentController = [UIDocumentInteractionController interactionControllerWithURL:URL];
documentController.delegate = self;
[documentController presentOpenInMenuFromRect:CGRectZero inView:self.view animated:YES];
}