Um using AsyncImageView
class here. In the documentation they are saying that "By default, all loaded images are cached". You can see it at the last paragraph in the documentation.
But the problem is when I try to load the images again it comes with the placeholder and wait a few seconds to load the image from URL again even it has been loaded successfully last time.
That means it wasn't cached, right ?
So um asking if there a problem with my code ?
Why the images not been cached like using the SDWebImage
?
These is my code :
AsyncImageView *imageView = [[AsyncImageView alloc] initWithFrame:CGRectMake(0, 0, productCellWidth, productCellHeight)];
imageView.contentMode = UIViewContentModeScaleAspectFill;
imageView.clipsToBounds = YES;
NSURL *URL = [NSURL URLWithString:[NSString stringWithFormat:ProductPicture]];
[AsyncImageLoader defaultCache];
[[AsyncImageLoader sharedLoader]loadImageWithURL:URL target:self success:@selector(successSelector) failure:@selector(failureSelector)];