Many applications, such as Tweetbot, display thumbnails in their table view controllers for higher resolution images.
For example, a thumbnail is displayed on this image, which when clicked shows a larger image:

I am very confused how these images load. My thinking was that the original image is loaded and then reduced to the size of the sketch and displayed. However, I find it hard to believe, since the image takes enough time to upload / download in full resolution, so doing this for each individual image would just take a decent amount of time to simply compress it. But they seem to load very fast.
I am also skeptical that when you then click on the image, it takes a second to load until the full resolution image is shown, which leads me to think that if they download full resolution before it is just temporary cached and loaded instantly when the user deletes it.
So, I'm curious how exactly you can achieve such a miniature system, as in this application. If you have a link to an image, such as the image shown in the figure above, how would I very quickly take an image from a URL and present it as a thumbnail?
ios objective-c uiimage uiimageview nsdata
Doug smith
source share