Passing object to window = iPhone Crash


On Android this code work:

//in app.js
var appWin = this;
function openHomeScreen(){
    var homeScreen = Ti.UI.createWindow({url:"views/HomeScreen.js",myParent:appWin});
crash also if the propriety is set here:

On iphone it crashed ( close the application )

The problem is pass the "appWin" on the window created.

Any other solution ?

I want use the function set in app.js from the created window.

Thank you

0 Answers