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];
}