Passing object to window = iPhone Crash

You must Login before you can answer or comment on any questions.

Hello,

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:
homeScreen.myParent=appWin;
*/
homeScreen.open();
}
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

Your Answer

Think you can help? Login to answer this question!