【发布时间】:2012-06-07 09:30:56
【问题描述】:
这是我的代码:在 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 ;
}
}
}
【问题讨论】: