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

iOS8: iPad Snapshot Splash is rotated sideways when in Landscape mode

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 3.4.0, Release 3.5.0
    • Component/s: iOS
    • Labels:
      None
    • Environment:

      Studio 3.4.0.201409112242
      SDK 3.4.0.v20140912120914
      CLI 3.4.0-rc2

    • Story Points:
      13
    • Sprint:
      2014 Sprint 19 SDK

      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
      1. Launch App
      2. In portrait mode double tap home button.
      3. Notice the splash screen image shown is in the correct portrait orientation
      4. Rotate it to landscape mode
      5. Multitask by double tapping the home button
      6. 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

        Attachments

          Activity

            People

            • Assignee:
              penrique Pedro Enrique (Inactive)
              Reporter:
              egomez Eduardo Gomez (Inactive)
              Tester:
              Ewan Harris
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code