taiyang2014

SDWebImage从缓存中获取图片

  if ([[SDImageCache sharedImageCache] imageFromKey:sort.imageUrl]) {
        [cell.photoImageView setImage:[[SDImageCache sharedImageCache] imageFromKey:sort.imageUrl]];
    } else {
        [cell.photoImageView setImageWithURL:[NSURL URLWithString:sort.imageUrl]];
    }

posted on 2015-12-04 17:23  taiyang2014  阅读(922)  评论(0编辑  收藏  举报

导航