1 2 3 4 5 |
// first we get the path to our image NSString *imagePath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/myImage.jpg"]; // now we can load and display the file like this self.myPicture.image = [UIImage imageWithContentsOfFile:imagePath]; |
To test if the file exists we can check the following: