vfr-reader

VFR-Reader Crashing in iOS8

筅森魡賤 提交于 2020-01-01 06:27:17
问题 I tested an app that is currently working with the VFR-Reader-Core on iOS8 and I get a complete crash when I try to open a PDF from it. Am I the only one with this problem? any idea of where I can search to correct this? Here is the crash report Thank you 回答1: In iOS 8, Te file system layout of app containers has changed. Applications and their content are no longer stored in one root directory. From the iOS 8 Release Notes: The file system layout of app containers has changed on disk. Rather

VFR-Reader Crashing in iOS8

二次信任 提交于 2020-01-01 06:27:15
问题 I tested an app that is currently working with the VFR-Reader-Core on iOS8 and I get a complete crash when I try to open a PDF from it. Am I the only one with this problem? any idea of where I can search to correct this? Here is the crash report Thank you 回答1: In iOS 8, Te file system layout of app containers has changed. Applications and their content are no longer stored in one root directory. From the iOS 8 Release Notes: The file system layout of app containers has changed on disk. Rather

willRotateToInterfaceOrientation not called on iOS8

╄→尐↘猪︶ㄣ 提交于 2019-12-21 04:22:20
问题 I'm using the VFR PDF viewer library in my app, where I present it thus: ReaderDocument *document = [ReaderDocument withDocumentFilePath:pdfFile password:nil]; ReaderViewController *vc = [[ReaderViewController alloc] initWithReaderDocument:document]; [self.navigationController pushViewController:vc animated:YES]; If I run on iOS7, everything works fine. If I run my app on iOS8, the willRotateToInterfaceOrientation method in ReaderViewController never gets called, so when the device is rotated

while loading pdf at VFR Reader get error in ios

久未见 提交于 2019-12-11 05:59:33
问题 Its not working because I am not using ARC in project and here is my code While download and saving pdf NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *comicbook_id = [[NSUserDefaults standardUserDefaults]stringForKey:@"comicbook_id"]; NSString *filePath = [NSString stringWithFormat:@"%@/book_%@.pdf", documentsDirectory,comicbook_id]; While retreiving to my reader I proceed

Xcode with VFR Reader loading PDF mistake

安稳与你 提交于 2019-12-08 04:32:02
问题 I use vfr/reader to open PDF files. When I open first PDF file my app opens it correctly but when I open another one, my app opens the first file again. This is my function to read PDF file -(void)readIssue:(IssueMath *)issue { NSString *filePath = [[issue.contentURL path] stringByAppendingPathComponent:@"Mathematics.pdf"]; NSLog(@"Read Path 1: %@ ",filePath); ReaderDocument *document = [ReaderDocument withDocumentFilePath:filePath password:nil]; NSLog(@"Read Path 2: %@ ",document.fileURL);

VFR-Reader Crashing in iOS8

北战南征 提交于 2019-12-03 21:24:22
I tested an app that is currently working with the VFR-Reader-Core on iOS8 and I get a complete crash when I try to open a PDF from it. Am I the only one with this problem? any idea of where I can search to correct this? Here is the crash report Thank you In iOS 8, Te file system layout of app containers has changed. Applications and their content are no longer stored in one root directory. From the iOS 8 Release Notes: The file system layout of app containers has changed on disk. Rather than relying on hard-coded directory structure, use the NSSearchPathForDirectoriesInDomains function or the

willRotateToInterfaceOrientation not called on iOS8

别说谁变了你拦得住时间么 提交于 2019-12-03 13:15:19
I'm using the VFR PDF viewer library in my app, where I present it thus: ReaderDocument *document = [ReaderDocument withDocumentFilePath:pdfFile password:nil]; ReaderViewController *vc = [[ReaderViewController alloc] initWithReaderDocument:document]; [self.navigationController pushViewController:vc animated:YES]; If I run on iOS7, everything works fine. If I run my app on iOS8, the willRotateToInterfaceOrientation method in ReaderViewController never gets called, so when the device is rotated the document doesn't get reformatted correctly. However, if I run the demo app that comes with the

iOS vfr reader framework cannot use downloaded pdf

允我心安 提交于 2019-12-01 14:20:22
I found the vfr reader framework while looking into some better alternatives for displaying pdf in an app. In my context, I need to download a pdf; it's not included in the app bundle already. It was easy to use the vfr framework with an embedded pdf, but I've been stumped so far with getting it working with downloaded data that I write to a file, then init a ReaderDocument with it's path. I'm able to load the same file into a UIWebView no problem, so I don't believe it's the data. Here's the code: NSString *fullPathToPDF = [[[self appDelegate] urlForFileUnderRecursiveDocWithName:self.pdfName