Hello,
I have the following code:
Code:
NSString *homeDirectoryPath = NSHomeDirectory();
NSString *imagePath = [homeDirectoryPath stringByAppendingString:@"/graph.png"];
NSLog(@"Image: %@", imagePath);
//UIImage *graphImage = [[UIImage alloc] initContentsOfFile: imagePath];
UIImage *graphImage = [[UIImage alloc] initWithContentsOfFile:imagePath];
if (![[NSFileManager defaultManager] fileExistsAtPath:imagePath isDirectory:NULL])
{
graph.image = graphImage;
[graphImage release];
}
[super viewDidLoad];
My image is not appearing as I expected, anyone any ideas ?
Regards,
Stephen