I am using SDWebImage in my pictures ios app.
The user enters a number and click on "OK", then I will open a UIImageView with a specific picture related to that number. I'm doing this by using:
[myImageView sd_setImageWithURL:imageUrl];
However I have something like 1000 images. So when the app starts I am calling:
[[SDWebImagePrefetcher sharedImagePrefetcher] prefetchURLs:arrayWIthAllMyImages];
According to the document, this will prefetch all my images in the background, that way displaying them would be quick if they are cached.
My Question:
- Consider this scenario: the prefetcher is still downloading the images, and the user open an image and I set it using
sd_setImageWithURL
, but this specific image was not yet downloaded. Is there a way I can tell SDWebImage to give priority to this specific image so it displays quickly for the user, without having to wait it's turn to come?
This might be done like that, but I just want to confirm because I don't have a lot of images at this moment, but I might reach that stage. Thanks a lot for any clarification.