I have a big UIimage (2000x2000). Image drawed every time on app start, and copied to CALayer. On Current time i put UIScrollView on main view, and make CALayer with drawn image. Scrolling on small zoom looks fine. But on min zooming , when whole image visible, image scroll slowed, it becomes not quick responsible on move touch.
So, the question. What can I do, to increase scrolling performance?
preguntado el 08 de noviembre de 11 a las 18:11
The approach I would take is to use a lower resolution version of your image at lower zoom levels (lower = zoomed out).
Primera vista esta publicación for resizing UIImages.
Responde a la scrollViewDidEndZooming:withView:atScale: method in UIScrollViewDelegate, and switch the images when a certain zoom level is reached. This will take some trial and error to find the correct balance. You may even want to render your image at several different resolutions. Be sure to generate the different sized UIImages in advance so there is no delay while zooming.