- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在构建一个报亭通用应用程序。当我下载一期杂志并打开它时,它运行正常,但是当我删除它,重新下载并打开它时,它会抛出以下错误:
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:471
2013-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]];
我使用的是Newsstand、iOS6、Xcode 4.6、MKStoreKit,以及这个项目的模板:https://github.com/vfr/Reader
读者似乎试图打开已删除的文件,而不是我提供给它的文件。
如有任何帮助,我们将不胜感激,提前致谢。
最佳答案
我通过使用解决了这个问题
[[ReaderDocument alloc] initWithFilePath:file password:nil];
而不是
[ReaderDocument withDocumentFilePath:file password:nil];
关于iphone - NSInternalInconsistencyException 为 'CGPDFDocumentRef == NULL',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15751246/
我知道之前有人问过这个问题,但我会更具体一些。 我有一个 CGPDFDocumentRef 文档,我想找到预告片,最好是 CGPDFDictionaryRef 的形式,这样我就可以查看它的 Encry
是否可以从 CGPDFDocumentRef 中检索文档的名称 最佳答案 “文档名称”是指文档文件名还是标题? 如果元数据中包含文档“标题”,则可以像这样检索它: char *titleKey
我正在构建一个报亭通用应用程序。当我下载一期杂志并打开它时,它运行正常,但是当我删除它,重新下载并打开它时,它会抛出以下错误: 2013-04-01 22:06:07.672 Magazine[143
我有一个问题,我希望有人能帮助我。 我将 PDF 文件下载到文档目录 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDi
我将我的 PDF 从 SQLite 数据库获取到一个 NSData 变量中。现在我可以从这个 NSData 创建 CGPDFDocumentRef 的选项是什么? 或者我有什么选择来创建这个 CGPD
处理 CGPDFDocumentRef 对象的适当方法是什么,以便可以将其添加到 NSArray 中,然后轻松地在其 CGPDFDocumentRef 中检索回来形式? 最佳答案 您可以轻松地将 CG
对于 PDF 阅读器,我想通过对每一页进行“截图”来准备文档并将其保存到光盘中。第一种方法是 CGPDFDocumentRef document = CGPDFDocumentCreateWithUR
这个问题在这里已经有了答案: 关闭 10 年前。 Possible Duplicate: how to fit pdf page in entire view 我可以毫无问题地显示 PDF,但是,在
我是一名优秀的程序员,十分优秀!