SDWebImage导致慢速图像绑定

时间:2014-02-03 05:17:34

标签: ios iphone sdwebimage

我正在使用SDWebImage来缓存我的图片。总的来说它看起来不错,但是当我使用setImageWithUrl方法时,将图像绑定回我的collection view需要更长的时间。有这个问题的解决方案吗?我试过以下内容,但看起来仍然有同样的问题。

__weak UIImageView *weakImageView = pictureImageView;
    [pictureImageView setImageWithURL:[NSURL URLWithString:picture.attachment.url] placeholderImage:nil options:0 completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType) {
        weakImageView.image = image;
    }];

0 个答案:

没有答案
相关问题