iphone - NSInternalInconsistencyException with 'CGPDFDocumentRef == NULL' -
i building newsstand universal app. when download magazine issue , open it, runs fine, when delete it, redownload, , open it throws following:
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 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 exception(lldb)
i delete file deleting issue:
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]];
i using newsstand, ios6, xcode 4.6, mkstorekit, , template of project: https://github.com/vfr/reader
the reader seems trying open deleted file instead of file give it.
any appreciated, in advance.
i solved issue using
[[readerdocument alloc] initwithfilepath:file password:nil];
instead of
[readerdocument withdocumentfilepath:file password:nil];
Comments
Post a Comment