hey guys,
I have searched a bit and can’t find an answer to my question. I have an exising app that I built so that it would work univerally with ios/Android. All the assets were built just right and so forth. Even so my app still displays as “cropped” on the new iphone 5. What do I need to do to let the iphone 5 know not to crop my content? My assets should all be fine because Android is already at this widescreen ratio. All I could find was people talking about including the “default.png” file? Is that what tells the iphone 5 this app should be full widescreen? Any help would be great! Thanks [import]uid: 19620 topic_id: 35514 reply_id: 335514[/import]
Take a look at http://www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/ [import]uid: 65415 topic_id: 35514 reply_id: 141131[/import]
There are two things you have to do.
- Create a default.png file, that is 1136x640 in size and named
Default-568@2x.png
That will tell Apple that you intended to use a tall app.
- Update your config.lua to support a screen that uses that real-estate. See this blog:
http://www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/ [import]uid: 199310 topic_id: 35514 reply_id: 141132[/import]
@rob,
I included the default.png file, and it doesn’t seem to be affecting anything. I changed my config file to the 320x568 just to test temporarily on the iphone 5, and it screwed up my image assets but still the app was cropped. Just having the “default.png” should make it so the app doesn’t get cropped right? [import]uid: 19620 topic_id: 35514 reply_id: 141142[/import]
@rob,
Nevermind,
I found out the issue was that the file name needed to have “Default-568h@2x.png”. What you suggested above was missing the “h”. Thats all I needed to know, already had my app content setup to fill the screen! Thanks! [import]uid: 19620 topic_id: 35514 reply_id: 141143[/import]
Take a look at http://www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/ [import]uid: 65415 topic_id: 35514 reply_id: 141131[/import]
There are two things you have to do.
- Create a default.png file, that is 1136x640 in size and named
Default-568@2x.png
That will tell Apple that you intended to use a tall app.
- Update your config.lua to support a screen that uses that real-estate. See this blog:
http://www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/ [import]uid: 199310 topic_id: 35514 reply_id: 141132[/import]
@rob,
I included the default.png file, and it doesn’t seem to be affecting anything. I changed my config file to the 320x568 just to test temporarily on the iphone 5, and it screwed up my image assets but still the app was cropped. Just having the “default.png” should make it so the app doesn’t get cropped right? [import]uid: 19620 topic_id: 35514 reply_id: 141142[/import]
@rob,
Nevermind,
I found out the issue was that the file name needed to have “Default-568h@2x.png”. What you suggested above was missing the “h”. Thats all I needed to know, already had my app content setup to fill the screen! Thanks! [import]uid: 19620 topic_id: 35514 reply_id: 141143[/import]