Quantcast
Channel: iOS Dev Diary » UIImage
Viewing all articles
Browse latest Browse all 12

How to load a UIImage that we’ve previously saved

$
0
0
    // 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];





Viewing all articles
Browse latest Browse all 12

Trending Articles