In fact, you don't need to create hidden UIImageView to do the trick.
What you need to do is set the first URL (with a smaller image), which will be directly loaded into your UIImageView , and then use SDWebImageManager to load the larger version in the background. When it finishes downloading, just set the downloaded image as an image.
Here's how you can do it:
Notice how I used the SDWebImageLowPriority parameter. Thus, the image (which should naturally be larger than the first) will be loaded with low priority and should not cancel the first download.
source share