View Full Version : Letter Boxed App on iphone 5
PhilMerrell
10 Dec 2012, 8:35 AM
My apps are letter boxed when building to iOS/iphone5. Is there a setting I'm not seeing, or a fix in the works?
Thanks
we're facing the same problem (sencha touch 2.0.1.1, webapp only)
edit: updating to sencha touch 2.1 is no real solution for our project
PhilMerrell
13 Dec 2012, 2:42 PM
I discovered today that if you provide the correct size of splash screen images into the root directory of your app, it will no longer letter boxed. (Note: these sizes appear to be different than webapp splash screen sizes).
However the splash screen only appears for a very short time, and is replaced by a white screen until the rest of the app loads. Would love to see the splash screen stay up until the app is ready to be displayed.
Can you elaborate a bit?
I added "resources/startup/640x1136.png" (which consisted of a pic 640x1136), and added "'640x1136': 'resources/startup/640x1136.png' " to my app.js under [startupImage]. Also tried the reverse (1136x640).
I'm still not getting the full screen size on the iPhone 5. Any ideas? Using 2.1.0.
EDIT:
Nevermind. I was referring to the Native packager. Got it to work by doing the following:
* Created a new Image in resources/startup called Default-568h@2x.png
* Add in the line "rawConfig":"<key>UILaunchImageFile</key><string>resources/startup/Default.png</string>" to the JSON Build file.
rballman
7 Feb 2013, 9:57 AM
Nevermind. I was referring to the Native packager. Got it to work by doing the following:
* Created a new Image in resources/startup called Default-568h@2x.png
* Add in the line "rawConfig":"<key>UILaunchImageFile</key><string>resources/startup/Default.png</string>" to the JSON Build file.
Did you mean "Default-568h@2x.png" to the "rawConfig"? There is no Default.png...
Hi nebev, I've add an image file in resource/startup called Default-568h@2x.png and I've added the line "rawConfig":"<key>UILaunchImageFile</key><string>resources/startup/Default.png</string>" in my packager.json but still not working in simulator.
What's wrong?
thanks
stefano
It could be because the packager moves your Sencha App into a directory called "webapp".
The line in my JSON looks like this:
"rawConfig":"<key>UILaunchImageFile</key><string>webapp/resources/startup/Default.png</string>",
And my file (for iPhone 5) is
[App_Directory]/resources/startup/Default-568h@2x.png
stefx
5 Mar 2013, 12:40 AM
Great!
Thanks
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.