0
UIDocumentInteractionController *documentVc = [UIDocumentInteractionController interactionControllerWithURL:fileURL];
documentVc.delegate = self;
if (![documentVc respondsToSelector:@selector(presentPreviewAnimated:)]) {
NSLog(@"can not open this file");
} else {
[documentVc presentPreviewAnimated:YES];
}
UIDocumentInteractionControllerがファイルを開くことができない場合、そのファイルを開くことはできません。何か案が?UIDocumentInteractionControllerがファイルを開くことができないことを知るにはどうすればよいですか?
と私のコードが動作していません。