0
目前我的圖片只是彈出到視圖中。我希望他們淡入如何淡入SDImageCache圖片
我已經試過了,沒有運氣:
SDImageCache *imageCache = [SDImageCache sharedImageCache];
[imageCache queryDiskCacheForKey:encodedString done:^(UIImage *image, SDImageCacheType cacheType) {
if (image){
cell.thumbnailImageView.image = image;
}else{
[cell.thumbnailImageView setImageWithURL:[NSURL URLWithString:encodedString] placeholderImage:myImage completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType) {
[imageCache storeImage:image forKey:encodedString];
}];
UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
imageView.alpha = 0;
[UIView animateWithDuration:5.0 animations:^{
imageView.alpha = 1.0;
}];
}
}];
這不起作用與上次propperly我得到的錯誤'}]'所以我代替吧'});'現在的圖像正在用錯誤的圖像 – maxisme
我已經取代!更新了我的代碼中刪除一個「(」 –
還是慢騰騰的圖像 – maxisme