nicklockwood/iCarousel — Issue #86: Loading ALL views in 1.6, not in 1.4
Author: bandejapaisa
Created: 2012-02-14 12:15:26+00:00
State: open

I was using 1.4. I have a carousel that has 500 views with UIImageViews. The image views download their images on demand.

I was triggering the download using:

- (UIView *)carousel:(iCarousel *)carousel viewForItemAtIndex:(NSUInteger)index

I have a ilnear carousel along the bottom of the iPad, and have about 13 images on display. The method above was getting called 20 times on app start, and then once for each time it loaded another image.

However... just tried 1.6, and it calls viewForItemAtIndex 500 times at startup. So it's loading every view immediately, not on demand.

It used to behave similar to how a UITableView works, loading cells on demand.

Is this something you're aware of?

Logging this, re-iterates my point:

- (void)carouselDidScroll:(iCarousel *)carousel {
//indexesForVisibleItems //using this on 1.6 reports 500 !
NSLog(@"%i", [[carousel visibleViews] count]); //1.4 reports 20
}