[TIMOB-5297] iOS: Launching in landscape incorrectly displays orientation animation
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-01-26T21:19:09.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | dr-list, ios, launchscreen, orientation |
Reporter | Andreas Oberg |
Assignee | Shak Hossain |
Created | 2011-08-11T15:59:57.000+0000 |
Updated | 2014-06-19T12:46:38.000+0000 |
Description
When building an app that starts in landscape mode there is a orientation change animation just after the launch image disappears and the first window is opened. This is not the case with landscape only app developed with xcode: the launch image is displayed and the first window loads in landscape mode correctly without the unnecessary animation.
Se app.js and tiapp.xml below. Note that it doesn't matter if you put portrait mode in tiapp.xml instead.
true in tiapp.xml.
If you set this to false there is no animation, but then there will be a status bar on your splash which is not desired.
var win = Titanium.UI.createWindow({
backgroundColor:'#fff',
orientationModes:[Ti.UI.LANDSCAPE_RIGHT]
});
win.open();
//iphone section only
<iphone>
<orientations device="iphone">
<orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
</orientations>
Edit: This only applies if you have
This should be re-tested on 1.8 - I think a fix for this went in recently.