I've got a problem while downloading images in my iOS app. My app has the ability to download images form my server, but when I close the app while the download is being done and then I reopen it, for the app the image was fully downloaded, but when I open it it's crashed (half of the image looks OK, but the other half is all grey) and I can't find the way to handle this case.
Is there a way to handle this case? I mean, is there a way to know if the image is crashed, or any other thing that let's me know that the image wasn't downloaded ok for me to redownload it?