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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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