AsyncImageView
AsyncImageView copied to clipboard
Image not Cache
Hey Nick,
I am not sure whether the implementation that I did is correct or not, the images not being cache every time when I re-run the app.
SingleDiscoverItemTVCell *cell = (SingleDiscoverItemTVCell *)[self.mainTableView dequeueReusableCellWithIdentifier:@"TVCellSingleDiscoverItem"];
if( cell == nil ){
NSArray *nibs = [[NSBundle mainBundle] loadNibNamed:@"SingleDiscoverItemTVCell"
owner:(id)self
options:nil];
cell = (SingleDiscoverItemTVCell *)nibs[0];
}
else {
[cell showImagePlaceholder];
[[AsyncImageLoader sharedLoader] cancelLoadingImagesForTarget:cell.mainIV];
}
return cell;
cell.m
@property (nonatomic, weak) IBOutlet AsyncImageView *mainIV;
self.mainIV.imageURL = [NSURL URLWithString:@"the url"];
AsyncImageView doesn't currently implement disk caching, so the cache won't survive an app restart.
Got it, thanks Nick :)