Results 2 comments of fengyunjue

可能是你在下载图片后,在completed之后调用[uicollectionview reload],然后collectionView:cellForItemAtIndexPath:方法又会去调用下载图片方法,出现死循环,导致你的webp图片卡顿。如果是这个问题,可以尝试下面的代码。 ``` [self.gifView sd_setImageWithURL:url placeholderImage:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) { if (cacheType == SDImageCacheTypeNone) {// 仅第一次下载时,调用reloadData [collectionView reloadData] } }]; ```