UIImage imageNamed: does not find image within blue referenced Xcode-folder

Viewed 11158

In my Xcode project I have a blue referenced folder which points to a folder with images.

The benefit of the blue folder is that I don't have to add the files to Xcode manually. So when I add a new image to the folder it automatically shows up in Xcode, however, when I try to reference the file from code using

[UIImage imageNamed:@"myFileFromTheBlueFolder"];

it does not find the image although the top-level folder is added to the target. :-(

Do I have to reference the image differently when I is coming from a blue folder, which would IMHO defeat the purpose of having such a folder at all.

3 Answers
Related