Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

iPad: Open window in split view

Hi,

i am using the kitchensink ipad code to build my first ipad app.

So, i use a split view, Main Test (First button of kitchensink). Then in the detailwindow i would like to add a button that opens a new window inside the detailwindow. Seems nothing to fancy, right? But it does not work at all…

Actually i would like to be able to digg deeper in the detailwindow from inside the detailwindow, with buttons, pickers, ecc.

Any idea how to solve this, i don't get the "target" of my button.

Thanks to anyone, here is my snippet of the detailwindow i use:

test = {};
test.view = Ti.UI.createView();

test.init = function()
{
    var b1 = Ti.UI.createButton({
        title:'testbutton',
        height:50,
        width:300,
        top:100
    });

    b1.addEventListener('click', function()
        {
            var w = Ti.UI.createWindow({backgroundColor:'#fff'});
            var l = Ti.UI.createLabel({
                text:'New Window',
                textAlign:'center'
            });
            w.add(l)
            test.view.open(w,{animated:true});
        });

    test.view.add(b1);

}
— asked July 7th 2010 by Bruno Mandolesi
0 Comments

1 Answer

  • Accepted Answer

    Hi Bruno,

    I think you are looking to do something similar to what I did with this simple iPad RSS reader demo app - check out how I push windows onto the stack to get the effect (I think) you might be going for.

    — answered July 7th 2010 by Kevin Whinnery
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.