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
PR's merged https://github.com/appcelerator/titanium_mobile/pull/6097 https://github.com/appcelerator/titanium_mobile/pull/6099
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.