I am adding a number of folders to my project (using the option Add existing file). This causes the contents of the folder to appear in Xcode as a blue folder.
The following works:
NSString *imageName = [NSString stringWithFormat:@"/File-03/images/image-%02d.jpg", imageIndex];
return [UIImage imageNamed:imageName];
However, I want to switch to using imageWithContentsOfFileso that the images are not cached.
The code below returns nilfor the image:
return [UIImage imageWithContentsOfFile:[NSString stringWithFormat:@"/File-03/images/image-%02d.jpg", imageIndex]];
I also tried to access imageWithContentsOfFileusing the beam, no go.
What am I missing here?
source
share