Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17684] iOS8: iPad Snapshot Splash is rotated sideways when in Landscape mode

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-09-26T18:39:21.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.4.0, Release 3.5.0
ComponentsiOS
Labelsn/a
ReporterEduardo Gomez
AssigneePedro Enrique
Created2014-09-13T01:40:34.000+0000
Updated2014-11-21T20:25:10.000+0000

Description

Issue description

If the device is in landscape mode when the user goes into multitask mode on iOS (Double Tap Home Button) the splash screen snapshot is shown rotated sideways in the portrait orientation (As seen in the Screen shoot attached). When using the Ti.App.setForceSplashAsSnapshot(true); property and the 3.3.0.GA TiSDK and iOS 7 SDK on iOS 7 device when the user goes into multitask mode on iOS (Double Tap Home Button) the splash screen snapshot is shown in the orientation that the app is in (screen shoot attached to illustrate this).

Steps to reproduce

Launch App

In portrait mode double tap home button.

Notice the splash screen image shown is in the correct portrait orientation

Rotate it to landscape mode

Multitask by double tapping the home button

Notice that the splash screen image is shown rotated sideways. It appears to be stuck in portrait mode.

Sample code

Reproduced at iOS8 Ipad Simulator.
Titanium.UI.setBackgroundColor('#000');

// create tab group
var tabGroup = Titanium.UI.createTabGroup();
Ti.App.setForceSplashAsSnapshot(true);
var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({  
    icon:'KS_nav_views.png',
    title:'Tab 1',
    window:win1
});

var label1 = Titanium.UI.createLabel({
	color:'#999',
	text:'Click',
	font:{fontSize:20,fontFamily:'Helvetica Neue'},
	textAlign:'center',
	width:'auto'
});

win1.add(label1);

label1.addEventListener('click', function(e) {
    alert(e);
});
 
var win2 = Titanium.UI.createWindow({  
    title:'Tab 2',
    backgroundColor:'#fff'
});
var tab2 = Titanium.UI.createTab({  
    icon:'KS_nav_ui.png',
    title:'Tab 2',
    window:win2
});

tabGroup.addTab(tab1);  
tabGroup.addTab(tab2);  
tabGroup.open();

Additional details

Since our docs says it only works at device there is an attached sample app to illustrate: 3.4_Splash_SnapShot_Sideways.zip A picture is attached which shows the issue called: SplashSnapshotSideways.png This was also reproduced with iPad (Gen 3) running 8.0 Beta 5 using - http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.App-property-forceSplashAsSnapshot

Attachments

FileDateSize
3.4_Splash_SnapShot_Sideways.zip2014-09-13T01:40:34.000+00007028509
iOS7 Simulator.png2014-09-13T01:43:36.000+0000300530
iOS8 Simulator.png2014-09-13T01:40:34.000+0000746762
SplashSnapshotSideways.png2014-09-13T01:40:34.000+00001119059

Comments

  1. Vishal Duggal 2014-09-16

    PR's merged https://github.com/appcelerator/titanium_mobile/pull/6097 https://github.com/appcelerator/titanium_mobile/pull/6099
  2. Ewan Harris 2014-09-17

    Verified fix on: Mac OSX 10.9.4 Appcelerator Studio, build: 3.4.0.201409131030 Titanium SDK build: 3.4.0.v20140916151649 Titanium CLI, build: 3.4.0-rc4 Alloy: 1.5.0-rc2 Xcode6 GM Seed iOS Device iPad4 (8.0 GM Seed), iPad Retina Simulator (8.0) Built an app to both simulator and device, double clicked the home button to go into multitask mode while in landscape mode and the splash screen image was shown in landscape orientation. Closing ticket.

JSON Source