I'm trying to check if an image exists using the fileExistsAtPath method of NSFileManager :
Product *prod = (Product *)[products objectAtIndex:i];
NSFileManager *fileManager = [NSFileManager defaultManager];
NSString *pathForFile = prod.img_mini;
NSLog(@"PathForFile : %@", pathForFile);
if ([fileManager fileExistsAtPath:pathForFile])
NSLog(@"File %@ exists !", prod.img_mini);
But this method always return false even if files exists in the project. Files are at the root of my project and placed in a groupe "ProductsImages". Do i have to mention this group somewhere ?
Thanks for your help.