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
Images can't be displayed on iOS simulator or iDevice
-
17-06-2023 - |
Вопрос
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.
Решение 2
Другие советы
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.
Не связан с StackOverflow