SDWebImage + UITableViewCell, wrong image when scrolling?

前端 未结 5 1980
失恋的感觉
失恋的感觉 2021-02-06 04:08

i\'m having an issue using SDWebImage to load images to a UIImageView inside a custom UITableViewCell. This is my code at the UITableView delegate:

    static NS         


        
5条回答
  •  轮回少年
    2021-02-06 04:37

    Just call sd_cancelCurrentImageLoad and set [imageView setImage:nil] before call sd_setImageWithURL.

    [imageView sd_cancelCurrentImageLoad]; 
    

提交回复
热议问题