简体   繁体   English

VFR Reader在IOS 7中崩溃

[英]VFR Reader crashes in IOS 7

I am using vfr/reader in my application for reading pdf files. 我在应用程序中使用vfr / reader读取pdf文件。 It was working fine in IOS 6.1. 在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); 但是在尝试在IOS 7中运行时崩溃,该应用程序崩溃,并在执行CGContextDrawPDFPage(context,_PDFPageRef)时声明EXC_BAD_ACCESS代码= 1; 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. 我搜寻了一下,才知道发行ios 6时也出现了同样的问题。 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. 我还尝试根据此链接在CGContextDrawPDFPage(context,_PDFPageRef)之前添加以下两行,但这无助于解决错误。

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

As I am a newbie to the Iphone application development, any help would be much appreciated. 由于我是Iphone应用程序开发的新手,因此非常感谢您的帮助。

Thanks, Abilash.G 谢谢,Abilash.G

This is a bug in iOS 7. 这是iOS 7中的错误。

You should file a bug report with Apple and provide them with the PDF file that is causing the crash. 您应该向Apple提交错误报告,并向他们提供导致崩溃的PDF文件。

Just tested with XCode 5.1 Developer Preview in iOS 7.1 and it seems they have fixed the issue. 刚刚在iOS 7.1中使用XCode 5.1开发人员预览版进行了测试,看来它们已解决了该问题。 No crash, works as it should. 没有崩溃,可以正常工作。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM