How to use this animation style?
Here is my code that is created when I click a button
var w = Titanium.UI.createWindow({
title:'Add Location',
backgroundColor:'#000000',
opacity:1,
barColor:'#000000',
url:'addlocation.js'
});
Titanium.UI.currentTab.open(w,{animated:true});
And here is the style I want to use
MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL
For some reason all it does is slide up to open
3 Answers
-
You need to use another method to open modal views:
w.open( { modal: true, modalTransitionStyle: Ti.UI.iPhone.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL, modalStyle: Ti.UI.iPhone.MODAL_PRESENTATION_FULLSCREEN, navBarHidden: false });
-
Here is my code. If I take out the url part, it works, but then theres nothing to see..
addButton.addEventListener('click',function(e) { var winAdd = Titanium.UI.createWindow({ title:'Add Location', url:'addlocation.js', barColor:'#000000', backgroundImage:'stripes.png', backgroundColor:'#fff' }); //Titanium.UI.currentTab.open(winAdd,{animated:true}); var t = Ti.UI.iPhone.AnimationStyle.CURL_UP; Ti.UI.currentWindow.animate({window:winAdd,transition:t}) });
-
Nope, just does the same old slide from the bottom transition.