Lazy Loading UIImages from files without blocking main thread?

I use a custom UIImageView subclass for something similar to this. It's mostly used to download images (think avatars and images in a twitter stream for example), so it uses an NSURLConnection to download the image from an URL. The URLConnection then calls a delegate method when done, which I then use to update the UIImageView.An extra I added later is a static dictionary with cached images, so images that are used more often don't have to be downloaded every time.

This is pretty useful for stuff like the twitter avatars mentioned earlier I'm not sure if you're trying to load the images from web or locally, so this might not apply perfectly to your situation, but I hope this helps.

I use a custom UIImageView subclass for something similar to this. It's mostly used to download images (think avatars and images in a twitter stream for example), so it uses an NSURLConnection to download the image from an URL. The URLConnection then calls a delegate method when done, which I then use to update the UIImageView.An extra I added later is a static dictionary with cached images, so images that are used more often don't have to be downloaded every time.

This is pretty useful for stuff like the twitter avatars mentioned earlier. I'm not sure if you're trying to load the images from web or locally, so this might not apply perfectly to your situation, but I hope this helps...

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions