[TIMOB-11284] iOS: Orientation - An 'undefined' exception during an application launch on iOS
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2016-11-02T12:32:01.000+0000 |
Affected Version/s | Release 3.0.0, Release 3.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | parity, qe-ios100112 |
Reporter | Olga Romero |
Assignee | Hans Knöchel |
Created | 2012-10-05T23:30:12.000+0000 |
Updated | 2017-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
File | Date | Size |
---|---|---|
parity.png | 2012-10-06T00:02:40.000+0000 | 82435 |
Screenshot_2013-03-22-16-11-29.png | 2013-03-22T11:25:35.000+0000 | 24493 |
Screenshot_2013-03-22-16-11-36.png | 2013-03-22T11:25:35.000+0000 | 20763 |
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
You should use "addEventListener" instead of "on" for cross-platform event handling.
Closing ticket as invalid with reference to the above comments.