Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11284] iOS: Orientation - An 'undefined' exception during an application launch on iOS

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2016-11-02T12:32:01.000+0000
Affected Version/sRelease 3.0.0, Release 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsparity, qe-ios100112
ReporterOlga Romero
AssigneeHans Knöchel
Created2012-10-05T23:30:12.000+0000
Updated2017-03-24T18:00:05.000+0000

Description

An application error while testing orientation on iOS devices. *It works on Android/Nexus7 4.1.1* Test steps: 1) Replace the app.js with this code:
var win = Titanium.UI.createWindow({  
    title:'Root Window',
    backgroundColor:'#fff',
    exitOnClose: true
}),
btn = Ti.UI.createButton({
    title: "Open Heavyweight Window",
    left: "16dp", right: "16dp", height: "48dp",
    bottom: "16dp"
});
 
win.add(Ti.UI.createLabel({
    text: "This is the root window",
    color: "#000",
    height: "48dp"
}));
 
win.add(btn);
 
btn.on("click", function() {
    var w = Ti.UI.createWindow({
        backgroundColor: "#f00",
        title: "New Activity",
        fullscreen: false
    });
    w.add(Ti.UI.createLabel({
        text: "This is a new Activity",
        height: "48dp",
        color: "#fff"
    }));
    w.open();
});
 
win.open();
Expected result: The window with "Open Heavyweight Window" button should open. Actual result: See an attachment.

Attachments

FileDateSize
parity.png2012-10-06T00:02:40.000+000082435
Screenshot_2013-03-22-16-11-29.png2013-03-22T11:25:35.000+000024493
Screenshot_2013-03-22-16-11-36.png2013-03-22T11:25:35.000+000020763

Comments

  1. jithinpv 2013-03-22

    it works fine on android but doesn't works in iOS Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) iOS iPhone Simulator: iOS SDK version: 6.0 Device: Samsung galaxy s duos Android version: 4.0.4 jithinpv
  2. Hans Knöchel 2016-11-02

    You should use "addEventListener" instead of "on" for cross-platform event handling.
  3. Lee Morris 2017-03-24

    Closing ticket as invalid with reference to the above comments.

JSON Source