iOS iOS - 1 month ago 15
iOS Question

Push a window when a row is selected

I am new to Titanium Studio. I am trying some samples in TableViews. How to push a new window when a row is selected in the tableView?

Answer

Open a new window in table row's click event.

some thing like this,

row.addEventListener('click', function(){
    var win = Ti.UI.createWindow({
      height:480,
      width:320,
      url:'sample.js'
    });

       win.open({modal: true});
});
Comments