For some reason my default.png is not showing on device. But it shows on simulator. What can be a problem. I notice this after i added native.newVideo()
Please help [import]uid: 11559 topic_id: 23376 reply_id: 323376[/import]
Keep in mind if you are using an iPhone 4, then you need to use Default@2x.png. [import]uid: 59735 topic_id: 23376 reply_id: 93665[/import]
I do have it. The problem it shows in simulator but not the device. [import]uid: 11559 topic_id: 23376 reply_id: 93667[/import]
Default.png or default.png? It should be capitalized I believe.
Adding native.newVideo(), is that in main.lua? If commented out does splash show find on device?
If not, does video play fine on device? [import]uid: 52491 topic_id: 23376 reply_id: 93693[/import]
I do have it capitalized as follows
Default-Landscape@2x.png
Default-Landscape.png
After commenting out video still the same, it just shows black screen.
Video does play fine on the device.
I looked at compiled .app file that corona gives you, it have Default.png files in there.
I really dont know what is the issue. [import]uid: 11559 topic_id: 23376 reply_id: 93812[/import]
Ayena, do you use Corona Project Manager? [import]uid: 84637 topic_id: 23376 reply_id: 93831[/import]
No I don’t . But I just figured it out. I didn’t know that iPhone doesn’t support Default-Lanscape.png it has to be Default.png
So I changed it to Default.png and it works. Thanks for all of your help.! [import]uid: 11559 topic_id: 23376 reply_id: 93837[/import]
I’m glad you got it working!
Just to let you know, iPhones/iPods that do not have a retina display only support the “Default.png” file. This file must be 320 pixels wide and 480 pixels high, regardless if your app is landscape or not. That is, it only supports a portrait orientation.
iPhones with retina displays only support “Default@2x.png”. It must be 640 pixels wide and 960 pixels high, regardless if your app is landscape or not.
iPads only support the following files:
- Default-Portrait.png
- Default-PortraitUpsideDown.png
- Default-Landscape.png
- Default-LandscapeLeft.png
- Default-LandscapeRight.png
Portait iPad images must be 768x1024 pixels and landscape images must be 1024x768. These images should be made upright. You don’t have to support the Left, Right, or UpsideDown images if you do not want to and just use the Portrait and Landscape images instead, which I believe are displayed upright relative to the orientation of your app.
I hope this helps! [import]uid: 32256 topic_id: 23376 reply_id: 93843[/import]
When you said:
“iPhones with retina displays only support “Default@2x.png”. It must be 640 pixels wide and 480 pixels high, regardless if your app is landscape or not.”
Did you mean “640 pixels wide and 960 pixels high”? [import]uid: 33154 topic_id: 23376 reply_id: 127293[/import]
When you said:
“iPhones with retina displays only support “Default@2x.png”. It must be 640 pixels wide and 480 pixels high, regardless if your app is landscape or not.”
Did you mean “640 pixels wide and 960 pixels high”? [import]uid: 33154 topic_id: 23376 reply_id: 127293[/import]
jaredpack,
Yes, you are correct. That was a typo and I just fixed it now. Thanks. [import]uid: 32256 topic_id: 23376 reply_id: 127493[/import]
jaredpack,
Yes, you are correct. That was a typo and I just fixed it now. Thanks. [import]uid: 32256 topic_id: 23376 reply_id: 127493[/import]