mayank sahai
mayank sahai

Reputation: 103

Displaying images in UIScrollView programmatically

I am displaying 200 thumb nail images of size 4kb to 12kb in UIScrollView programmatically 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.

Upvotes: 0

Views: 490

Answers (2)

TechZen
TechZen

Reputation: 64428

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.

Upvotes: 0

luvieere
luvieere

Reputation: 37494

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.

Upvotes: 1

Related Questions