Question

I am using vfr/reader in my application for reading pdf files. It was working fine in IOS 6.1. But crashes when trying to run in IOS 7, the app crashes stating EXC_BAD_ACCESS code = 1 while executing CGContextDrawPDFPage(context, _PDFPageRef); for a particular page everytime.

I've googled and came to know that the same issue was also raised when the ios 6 was released. I don't know how they solved the issue.

I also tried adding the following two lines before CGContextDrawPDFPage(context, _PDFPageRef) as per this link, but it doesn't helped solving the bug.

CGContextSetRenderingIntent(context, kCGRenderingIntentDefault); CGContextSetInterpolationQuality(context, kCGInterpolationHigh);

As I am a newbie to the Iphone application development, any help would be much appreciated.

Thanks, Abilash.G

Was it helpful?

Solution

Just tested with XCode 5.1 Developer Preview in iOS 7.1 and it seems they have fixed the issue. No crash, works as it should. :)

OTHER TIPS

This is a bug in iOS 7.

You should file a bug report with Apple and provide them with the PDF file that is causing the crash.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top