This question is for my understanding, since my code is working fine. I looked into SDWebImage, but it is quite large, and I canβt determine exactly how the mechanism I'm asking about works.
OK, let's say I have a table view full of UIImageViews (one inside each cell), and I call the SDWebImage category / extension on each of them to go and be lazy to download the image from the Internet.
What mechanism is used to update a cell, like on a screen, with a recently loaded image without reloading the table?
I ask about this, because I was surprised to see that when using the SDWebImage extension, each image image of my cell images appeared immediately after loading the corresponding image.
I got the impression that I would have to reload the tableView, but instead, each imageView element "automatically" updates when the image is available!
How it works? Does SDWebImage support a link to every cell / imageView that it works with?
source share