I'm having problems with clearing the cache of PSPDFDocument
before and after deleting the PDF file.
here's what I do:
// ...
PSPDFDocument *document = [PSPDFDocument PDFDocumentWithUrl:(pdfURL)];
[document clearCacheForced:YES];
[mManagedObjectContext deleteObject:mPdfDocument];
// ...
when I try to clear entire cache for all PDFs, it works:
// ...
[[PSPDFCache sharedPSPDFCache] clearCache];
// ...
Any ideas?