Hi,
I try to open a sub window in this style:
w.open({ modal : true, modalTransitionStyle : Ti.UI.iPhone.MODAL_TRANSITION_STYLE_PARTIAL_CURL, navBarHidden : true }); w.addEventListener('click', function() { Ti.API.log('CLOSE'); w.close(); }); w.addEventListener('close', function() { Ti.API.log('KILL'); w = null; });Over the content of modal (sub-) window I see on top this curl. On click it seems the window is closed. But on cobsole I never see messages. How can I detect the click of top area?
Rainer
1 Answer
Found:
w.open({ modal : true, modalTransitionStyle : Ti.UI.iPhone.MODAL_TRANSITION_STYLE_PARTIAL_CURL, navBarHidden : true }); _parent.addEventListener('click', function() { w.close({ transition : Ti.UI.iPhone.AnimationStyle.CURL_DOWN, duration : 60 }); }); w.addEventListener('close', function() { w = null; });
Your Answer
Think you can help? Login to answer this question!