iphone – 带有’CGPDFDocumentRef == NULL’的NSInternalInconsistencyException

iphone – 带有’CGPDFDocumentRef == NULL’的NSInternalInconsistencyException,第1张

概述我正在构建一个报亭通用应用程序.当我下载杂志问题并打开它时,它运行正常,但是当我删除它,重新下载并打开它时会抛出以下内容: 2013-04-01 22:06:07.672 Magazine[14353:707] *** Assertion failure in -[ReaderContentPage initWithURL:page:password:], /Volumes/Files/Work 我正在构建一个报亭通用应用程序.当我下载杂志问题并打开它时,它运行正常,但是当我删除它,重新下载并打开它时会抛出以下内容:

2013-04-01 22:06:07.672 Magazine[14353:707] *** Assertion failure in -[ReaderContentPage initWithURL:page:password:],/Volumes/files/Work in progress/el-beit/Magazine/Sources/ReaderContentPage.m:4712013-04-01 22:06:07.680 Magazine[14353:707] *** Terminating app due to uncaught exception 'NSInternalinconsistencyException',reason: 'CGpdfdocumentRef == NulL'*** First throw call stack:(0x35a4788f 0x3366b259 0x35a47789 0x34e3b3a3 0x84e59 0x85ba7 0x96d47 0x976ad 0x34e6d933 0x35a1ba33 0x35a1b699 0x35a1a26f 0x3599d4a5 0x3599d36d 0x33738439 0x33175cd5 0x6cf81 0x6cf08)terminate called throwing an exception(lldb)

我通过删除它的问题删除该文件:

NKlibrary *nklib = [NKlibrary sharedlibrary];NKIssue *issue = [nklib issueWithname:[kBaseFeatureID stringByAppendingString:((NSNumber *)self.listofMonths[index]).stringValue]];Nsstring *name = issue.name;[nklib removeIssue:issue];[nklib addissueWithname:name date:[self.dateFormatter dateFromString:((NSNumber *)self.listofMonths[index]).stringValue]];

我正在使用报亭,iOS6,Xcode 4.6,MKStoreKit以及该项目的模板:https://github.com/vfr/Reader

读者似乎试图打开已删除的文件而不是我给它的文件.

任何帮助将不胜感激,提前谢谢.

解决方法 我通过使用解决了这个问题

[[Readerdocument alloc] initWithfilePath:file password:nil];

代替

[Readerdocument withdocumentfilePath:file password:nil];
总结

以上是内存溢出为你收集整理的iphone – 带有’CGPDFDocumentRef == NULL’的NSInternalInconsistencyException全部内容,希望文章能够帮你解决iphone – 带有’CGPDFDocumentRef == NULL’的NSInternalInconsistencyException所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1004740.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存