Domanda

I am using correct type "png" and every thing was ok, all images was displayed, but now I can't see it.

in the Targets>> MyProject>>Build phases>>Copy Bundle Resources>> I have all images folders
Also, I have these folders in MyProject Test but did not appear on iPad.

È stato utile?

Soluzione 2

I deleted all images that in MyProject>>MyProject folder. Then added it again and choose "copy items into destination" which I didn't choose it before. Finally, I rearrange my images into groups. And It works on simulator and iPad

Altri suggerimenti

Simulator is not case sensitive, however iPhone / iPad is case sensitive.

I'm sure this is your problem.

e.g.

Your code have:

[UIImage imageNamed: @"Image.PNG"]

but the image in the bundle is something like:

image.png

EDIT:

It is the same in the Storyboard, image file name and image name in the storyboard should be the same.

enter image description here enter image description here

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top