Skip to content
This repository was archived by the owner on Sep 14, 2026. It is now read-only.
This repository was archived by the owner on Sep 14, 2026. It is now read-only.

Image not Cache #47

Open
Open

Description

@keithyeohh

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"];

Activity

  1. nicklockwood commented on Apr 15, 2014

    @nicklockwood
    Owner

    AsyncImageView doesn't currently implement disk caching, so the cache won't survive an app restart.

  2. keithyeohh commented on Apr 15, 2014

    @keithyeohh
    Author

    Got it, thanks Nick :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions