문제

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

도움이 되었습니까?

해결책

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. :)

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top