Comments (3)
Bump
I am seeing the same problem too. When zooming in and out several times and flipping pages causes a huge memory leak or huge allocations. I've tried running Instruments and cannot pinpoint where the leak is taking place... Anyone else have any thoughts or ideas? BTW I'm using Hammerlyrodrigo's most recent version with zooming enabled.
from leaves.
matsumoto79, I had received a solution (test it and verify for yourself!) to fix the memory problem I was having from Rodrigo Hammerly, assuming you are using his version (September 2011). For me it worked for the most part, I just had to tweak some of the tile settings. I changed the level of detail down to 4 and the bias to 2, and it seemed to work fine. The only time it didn't work was I had a higher detail and bias, which I think just took up too much memory to cache.
Add these two lines of code to -(void)getImages in the LeavesView.m file.
topPageZoomLayer.contents = nil;
topLeftPageZoomLayer.contents = nil;
from leaves.
@matsumoto79 I'm not able to reproduce the memory profile you're describing. If anyone can reproduce, please reopen this issue and publish your modified example in a fork.
from leaves.
Related Issues (20)
- error when zooming image HOT 1
- how to change the back image when the page fliping HOT 1
- Page turn showing up but no pdf in view? HOT 1
- too slow HOT 2
- how to increase the font size of the PDF in leavesView
- Is it possible to create new view design in Leaves View
- ansani/Leaves project Landscape issue HOT 1
- Is it possible to start from another pdf page other then the first? HOT 4
- Crashes on iPad HOT 2
- Storyboard Delegate HOT 1
- Crash on ios7 while using images HOT 1
- Could not run Sample Project HOT 2
- Project Broken running on iOS Simulator HOT 1
- GO To Page HOT 2
- Can I just load another UIView without using core graphics to render next page? HOT 1
- Scanned PDF not rendering
- Zoom In and Out
- Can we scroll page view?
- Load custom URl?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leaves.