Swapping pdf documents

damon's Avatar


03 Mar, 2015 06:44 AM

What is the best practice for memory management is swapping out pdf files? For example, i have a reader view controller in a container in a split view controller. the detail view controller has a list of documents the user can load similar to your fastPdf app. How do you swap documents without ballooning the amount of memory every time?

When I load a new document or leave the tab, i call

[self.pdfReader actionDismiss:nil]; [document emptyCache]; self.pdfReader=nil;

then i create new instances using the factory methods.

I never see a decrease in the amount of memory used. In fact it continues to climb as i change documents.

Can you recommend a better way to keep the memory usage low?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac