这是我的代码: 在 iPad 中,它在 iPhone 中崩溃,列表正在出现,但所选应用程序没有打开。
- (void)openIn:(NSURL *)fileFullPath {
docController = [UIDocumentInteractionController interactionControllerWithURL:fileFullPath];
[docController setDelegate:self];
BOOL isOpen = [docController presentPreviewAnimated:YES];
if (isOpen == NO) {
BOOL isOpenIn = [docController presentOpenInMenuFromRect:CGRectMake(300, 300, 100, 100) inView:self.view animated:NO];
if(isOpenIn == NO) {
return ;
}
}
}