Swapping pdf documents
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;
document=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?
Keyboard shortcuts
Generic
? | 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