For an app synchronized with a website, can anyone recommend a good way to check if an image exists locally?
I want to check if it is already downloaded to the phone before downloading it from the web.
I am currently storing the images locally in the documents folder as recommended by apple and retrieving it via a function that includes the following code.
- (UIImage*)loadImage
{
...
UIImage* image = [UIImage imageWithContentsOfFile:path];
return image;
}
Can anyone suggest a way to check of there is in a fact a local file?