-2

I have some code which loads a jpg from data and displays it in a UIImageView. Because this takes a second, I want to load a lower quality version of the image and display that while the full image is loading. Is this possible?

Andrew
  • 15,935
  • 28
  • 121
  • 203

1 Answers1

3

You should have a look at Image I/O

It lets you create a thumbnail from a source image and supports retrieving a thumbnail that may be embedded within the source image. JPG images often have a low quality thumbnail embedded within them.

Also, if loading the image is blocking your app, you should consider doing it on a background thread: load uiimage from file using grand central dispatch

Community
  • 1
  • 1
EarlyRiser
  • 727
  • 3
  • 6
  • I am loading in the background, i just want something to show the user in the mean time. Thanks. – Andrew Oct 24 '12 at 03:43