-
28 Apr 2012 2:22 PM #1
phoneStartupScreen doesn't work
phoneStartupScreen doesn't work
Greetings,
I use ST2 and I've tried to set my own startup screen in my app, like this:
I've tested in my iPhone 4 (with iOS5), and it does not work. I found some thread, where people has the same problem, but in their case, the startup image resize (to 640*920px or 320*480px) has solved the problem. To me, this isn't work neither. Is it a bug? Is there some possible fix?Code:... Ext.application({ phoneStartupScreen: 'startup.png', ...
Thanks in advance,
RobbeR
-
30 Apr 2012 4:22 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
Instead of phoneStartupScreen the config has been renamed to startupImage. I am still seeing the <link> tag have a src of apple-touch-startup-image on the kitchensink and touchstyle so we will look into it.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
1 May 2012 12:19 AM #3
In my case the startup screen did work on iPhone 4 but not on iPhone 4s. I also used the config parameter phoneStartupScreen.
After using the new config parameter startupImage it now works on both devices!
Thank you very much mitchellsimoens.Code:startupImage: { '320x460': 'resources/startup/320x460.jpg', '640x920': 'resources/startup/640x920.png', '768x1004': 'resources/startup/768x1004.png', '748x1024': 'resources/startup/748x1024.png', '1536x2008': 'resources/startup/1536x2008.png', '1496x2048': 'resources/startup/1496x2048.png' },
-
1 May 2012 6:20 AM #4
Documentation still shows phoneStartupScreen
Documentation still shows phoneStartupScreen
I don't know if startupImage is suppose to replace phoneStartupScreen or not, but doing a search in the docs, I see phoneStartupScreen, but startupImage does not show up in search at all. Is "startupImage" going to replace "phoneStartupScreen" or just supplement it?
Also, is there 1 unifying method for doing splash screens in both Android and IPhone. It looks like this method is iPhone only -- am I missing something??
-
1 May 2012 6:27 AM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
This is in the source:
You can see phoneStartupScreen and tabletStartupScreen are deprecated.Code://<deprecated product=touch since=2.0.1> if ('phoneStartupScreen' in config) { //<debug warn> Ext.Logger.deprecate("[Ext.setup()] 'phoneStartupScreen' config is deprecated, please use 'startupImage' " + "config instead. Refer to the latest API docs for more details"); //</debug> config['320x460'] = config.phoneStartupScreen; } if ('tabletStartupScreen' in config) { //<debug warn> Ext.Logger.deprecate("[Ext.setup()] 'tabletStartupScreen' config is deprecated, please use 'startupImage' " + "config instead. Refer to the latest API docs for more details"); //</debug> config['768x1004'] = config.tabletStartupScreen; }Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
3 May 2012 6:14 AM #6
tabletIcon and phoneIcon are also changed:
This is just a documentation issue, the code does actually work if you put it in your Ext.application() call.Code:icon: { 57: 'resources/logos/iphone_57.png', 72: 'resources/logos/iphone_72.png', 114: 'resources/logos/iphone_114.png', 144: 'resources/logos/iphone_114.png' }
-
4 May 2012 1:49 PM #7
-
8 May 2012 9:20 AM #8
Wird. Works for me if I use phoneStartupScreen, not the new configuration.
-
30 May 2012 7:13 PM #9
why not 320x480 as apple doc says ?
why not 320x480 as apple doc says ?
Curious, the apple doc shows 320x480 and 640x960 as the requirement for startup at that res. I'm wondering why Sencha is off for those to resolutions (320x460 and 640x920), but the same on the others.
https://developer.apple.com/library/...onsImages.html
-
7 Jun 2012 11:31 AM #10
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-2857
in
2.1.


Reply With Quote