Ios 在UIWebView中加载PDF并获得错误DiskImageCache:无法解析旧目录的绝对路径

Ios 在UIWebView中加载PDF并获得错误DiskImageCache:无法解析旧目录的绝对路径,ios,objective-c,iphone,uiwebview,Ios,Objective C,Iphone,Uiwebview,我已在UIWebView中加载PDF NSString *thePath = [[NSBundle mainBundle] pathForResource:@"ConferenceMap_2014" ofType:@"pdf"]; if (thePath) { NSData *pdfData = [NSData dataWithContentsOfFile:thePath]; [webViewPDF loadData:pdfData MIMEType:@"application

我已在UIWebView中加载PDF

NSString *thePath = [[NSBundle mainBundle] pathForResource:@"ConferenceMap_2014" ofType:@"pdf"];

if (thePath) {

   NSData *pdfData = [NSData dataWithContentsOfFile:thePath];

   [webViewPDF loadData:pdfData MIMEType:@"application/pdf" textEncodingName:@"utf-8" baseURL:nil];

}

错误:DiskImageCache:无法解析旧目录的绝对路径。

请从下载类文件

然后导入“UIView+DocumentView.h”

然后获取特定文件的路径

NSString*路径=[[NSBundle mainBundle]资源路径:@“pdf”类型的“file1427464777.586564”

接下来使用特定路径调用该类
[self.view makeDocumentView:thePath]

嗨,请从下载类文件

然后导入“UIView+DocumentView.h”

然后获取特定文件的路径

NSString*路径=[[NSBundle mainBundle]资源路径:@“pdf”类型的“file1427464777.586564”

接下来使用特定路径调用该类
[self.view makeDocumentView:thePath]

这并不能真正解释什么地方出了问题以及如何正确地修复它。这也不能真正解释什么地方出了问题以及如何正确地修复它。