I am displaying 200 thumb nail images of size 4kb to 12kb in UIScrollView programitically by adding UIButton when i am debugging in device it takes time to load the view.. can there is some method to load quickly the thumb mages are store in disk.
+1
A:
Use lazy loading by only loading the ones you show at once in any given moment - or use a background thread to perform the loading while keeping the interface responsive.
luvieere
2009-11-12 17:55:32
A:
If your layout allows, use a table view and a custom cell that holds several thumbnails. That way you can use the tableview controller's built in methods to manage the lazy loading. I'm pretty sure that is how Apple does the thumbnails in the photo library.
TechZen
2009-11-12 21:40:40
Lazy loading could probably be implemented for a UIScrollView as well. I guess one could decide what needs to be loaded in the delegate method -scrollViewDidScroll:Of course, most of the hard work has been done already in table views.
Thomas Müller
2009-11-12 21:47:01