Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11151] iOS 6 Only: Window - opening a modal window with UPSIDE_PORTRAIT orientation only crashes

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-06-23T20:12:03.000+0000
Affected Version/sRelease 2.1.3
Fix Version/sn/a
ComponentsiOS
Labelsqe-ios090112, qe-ios6, qe-nfc
ReporterNatalie Huynh
AssigneeEric Merriman
Created2012-09-25T23:11:37.000+0000
Updated2017-06-23T20:12:03.000+0000

Description

Steps to reproduce: Run the following code:
Ti.UI.backgroundColor = 'white';
var win = Ti.UI.createWindow();
var button = Ti.UI.createButton({
	title:'Push'
});

button.addEventListener('click', function(e)
{
	var winTest = Ti.UI.createWindow({
		backgroundColor:'red',
		orientationModes: [Titanium.UI.UPSIDE_PORTRAIT],
		modal:true
	});
	
	var label = Ti.UI.createLabel({
		text:'hello'
	})
	
	winTest.add(label);
	
	winTest.open();
});

win.add(button);
win.open();

2. Click on any of the row Expected: Open a red window with text hello Actual: Crash with following log: Sep 25 16:02:11 Titan WindowModule[2716] : *** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'

Comments

  1. Vishal Duggal 2012-09-26

    As of right now we can not support the upside down portrait mode on the iPhone idiom for modal windows for IOS6. Might be able to fix it in the future. Should be added to release notes.
  2. Lokesh Choudhary 2012-09-27

    This issue also affects any views present on the modal window. Referring to TIMOB-7028 any views on the modal window do not change to upside_portrait orientation because of the modal window itself. Tested on: Titanium studio : 2.1.2.201208301612 SDK version : 2.1.3.v20120926141610 Iphone 5 iOS 6
  3. Lee Morris 2017-06-23

    I am unable to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131 The app works as expected.

JSON Source