I need to load a lot of images, most of which will not be visible for several seconds until the user decides to scroll down. As such, I build up a list of all of their URLs and do something like:
for each one. I can verify that this runs, that all the HTTP requests hit my server, and that the appropriate notifications are posted and received upon success by the loader.
However, when I scroll the view downward to reveal an AsyncImageView instance whose imageURL has been set to one of the very same URLs I supposedly just prefetched (yes, I've double checked that they are not different in any way other than their memory addresses), I get an indeterminate loading progress spinner inside that view rather than the instantaneous display I would generally get if it were, in fact, cached.
I need to load a lot of images, most of which will not be visible for several seconds until the user decides to scroll down. As such, I build up a list of all of their URLs and do something like:
[[AsyncImageLoader sharedLoader] loadImageWithURL:imageURL];
for each one. I can verify that this runs, that all the HTTP requests hit my server, and that the appropriate notifications are posted and received upon success by the loader.
However, when I scroll the view downward to reveal an
AsyncImageView
instance whoseimageURL
has been set to one of the very same URLs I supposedly just prefetched (yes, I've double checked that they are not different in any way other than their memory addresses), I get an indeterminate loading progress spinner inside that view rather than the instantaneous display I would generally get if it were, in fact, cached.