Images not displaying on device, OK in simulator
Posted: Wed Dec 21, 2011 6:35 pm
My stack is designed in the LiveCode environment for a regular (non retina) iOS display
My directory structure look like this:
./assets/iphone/
.assets/iphoneX2/
The stack uses images from ./assets/iphone/ and the images in the iPhone and iphoneX2 directory have the same names, just different dimensions for the different screen sizes.
If I detect that I am running on a retina display, my code loops through all my images and replaces /iphone/ in the filename with /iphoneX2/
I then re-position the images and various other positioning things
In the simulator, this all works just fine. The retina images get brought in and the app works fine.
The moment I deploy to a retina device, I hit trouble. None of the images display.
They are definitely being copied over to the device, so that is not the problem.
Any suggestions to get these images to show would be most gratefully received!
Regards
Seamus
My directory structure look like this:
./assets/iphone/
.assets/iphoneX2/
The stack uses images from ./assets/iphone/ and the images in the iPhone and iphoneX2 directory have the same names, just different dimensions for the different screen sizes.
If I detect that I am running on a retina display, my code loops through all my images and replaces /iphone/ in the filename with /iphoneX2/
I then re-position the images and various other positioning things
In the simulator, this all works just fine. The retina images get brought in and the app works fine.
The moment I deploy to a retina device, I hit trouble. None of the images display.
They are definitely being copied over to the device, so that is not the problem.
Any suggestions to get these images to show would be most gratefully received!
Regards
Seamus