You can take a closer look at sd_setImageWithURL: 方法的内部实现,其实每次调用该方法都会先 Cancel 掉这个UIImageView the operations being performed by the previous request, and then start a new download, using runtime technology to access relevant data, thus avoiding the problem of Cell reuse.
Recurrence should be a problem of cell reuse. When the image on a cell is not loaded and the cell happens to be reused, the image on the cell will display the previous image. The solution is to set the image to nil in the cell's prepareforreuse.
You can take a closer look at
sd_setImageWithURL:
方法的内部实现,其实每次调用该方法都会先 Cancel 掉这个UIImageView
the operations being performed by the previous request, and then start a new download, using runtime technology to access relevant data, thus avoiding the problem of Cell reuse.Recurrence should be a problem of cell reuse. When the image on a cell is not loaded and the cell happens to be reused, the image on the cell will display the previous image. The solution is to set the image to nil in the cell's prepareforreuse.