Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11045] iOS: On iPhone 5 simulator and potentially on iPhone 5, the correct splash screen is drawn then replaced by the @2x before app launch

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-09-21T17:14:17.000+0000
Affected Version/sRelease 2.1.3, Release 3.0.0
Fix Version/sRelease 2.1.3, Release 3.0.0, Sprint 2012-19 API, 2012 Sprint 19
ComponentsiOS
Labelsqe-ios090112, qe-ios6, qe-iphone5
ReporterEric Merriman
AssigneeSabil Rahim
Created2012-09-21T12:10:19.000+0000
Updated2014-06-19T12:42:52.000+0000

Description

While verifying splash screens for iPhone 5 simulator, we encountered a small visual problem: the splash seemed to change color on some of the app launches. When using HTML 5, it was more obvious what was happening since the iPhone 5 splash (Default-568h@2x.png) has no HTML5 badge, while the iPhone 4/4s splash has the badge. With this test you can see there is no badge, then the badge appears and the app loads. THe issue is the "@2x" screen is being scaled to fit the screen and so has its content distorted. This is not a regression. Steps to reproduce: 1) Create a new studio project with either SDK listed using HTML 5 template 2) Run in iPhone 5 simulator 3) Watch for splash screen changes Result: Iphone 5 splash shown, then replaced with @2x version Expected: No change in splash prior to launch

Comments

  1. Sabil Rahim 2012-09-21

    master PR https://github.com/appcelerator/titanium_mobile/pull/3023 2.1.X PR https://github.com/appcelerator/titanium_mobile/pull/3025
  2. Vincent 2012-09-22

    there is maybe more to do : what if we want to set background for a View with 'Default-568h@2x' ? the path will not be found because we have to search in the Main Bundle. please have a look at : TiUtils.m +(UIImage*)loadBackgroundImage:(id)image forProxy:(TiProxy*)proxy and UIModule.m +(UIImage*)loadBackgroundImage:(id)image forProxy:(TiProxy*)proxy in both methods we have : if (resultImage==nil && [image isEqualToString:@"Default.png"]) { // special case where we're asking for Default.png and it's in Bundle not path resultImage = [UIImage imageNamed:image]; } btw this should also not work with Ipad Default-*.png
  3. Olga Romero 2012-09-25

    There is some change in splash prior to launch, looks like the appcelerator logo is repositioning or the image is scaling. Tested with: Titanium Studio, build: 2.1.2.201208301612 Titanium SDK, build: 2.1.3.v20120921190208 Titanium SDK, build: 3.0.0.v20120924114913 Device: iPhone 5 (ios6.0) Simulator 6.0
  4. Olga Romero 2012-09-25

    Closing an original issue as fixed. Tested with: Titanium Studio, build: 2.1.2.201208301612 Titanium SDK, build: 2.1.3.v20120925134611 Titanium SDK, build: 3.0.0.v20120925142513 Device: iPhone 5 (ios6.0) Simulator 6.0

JSON Source