I’m scrolling in a huge set of data points (CGPoints in a custom view, like a graph) and its obviously slow and laggy. Is there a common way to load and draw only the chunk of data I need to display? Does [[[myScrollview] documentView] documentVisibleRect] the trick?
I also want to zoom in and out and therefore change the data point’s detail.
Thanks for any tips.
I’m scrolling in a huge set of data points (CGPoints in a custom view,
Share
How you do this is completely up to you. It’s your custom view, you can draw whatever you like. Your view controller should keep track of the zoom level and current location and your view should just draw that part of the data.
There’s nothing magic that’s going to make this easier, you have to program it yourself.