0
我想从webview中打开ibooks。当用户点击web视图时,我会显示所有可用于打开该特定pdf的应用程序。但是当我点击ibooks时,应用程序关闭并没有任何反应。从ibooks中打开一个url崩溃
-(void) handleTap{
NSURL *pdfURL =[NSURL fileURLWithPath:self.url];// url is like https://www....
UIDocumentInteractionController *docController = [UIDocumentInteractionController interactionControllerWithURL:pdfURL];
//present a drop down list of the apps that support the file type, click an item in the list will open that app while passing in the file.
[docController presentOpenInMenuFromRect:CGRectZero inView:self.view animated:YES];
}
谢谢
你得到的任何特定的错误/异常? – MYK 2014-09-18 19:32:53
我不知道,因为。我正在测试一个现场设备,因为模拟器不会允许我在ibooks中打开。我做了一个更新,将self.url替换为本地文件(本地存储),但仍然是相同的行为 – 2014-09-18 19:38:34
你不能调试它吗? – MYK 2014-09-18 19:39:35