Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-5297

iOS: Launching in landscape incorrectly displays orientation animation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      Mac OSX 10.6.5. Macbook Air 1.86GHz IC2Duo, 4GB RAM
      Titanium Studio, build: 1.0.2.201107130739
      SDK: Tested in 1.6.2 and 1.7.2.

      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.

      app.js

      var win = Titanium.UI.createWindow({  
          backgroundColor:'#fff',
          orientationModes:[Ti.UI.LANDSCAPE_RIGHT]
      });
      win.open();
      

      tiapp.xml

      //iphone section only
      <iphone>
          <orientations device="iphone">
          <orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
      </orientations>
      

      Edit: This only applies if you have <statusbar-hidden>true</statusbar-hidden> 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.

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain
              Reporter:
              gibson Andreas Oberg
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-4483
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code