开发者

Windows transitions

I am developing an iOS app using Appcelerator and I got a quick question. How can I choose the tr开发者_StackOverflow中文版ansition animation when opening a new window? I do not want to use the default slide to right.

This is my code that I use (single context).

tab['tab1'].open(Window.Contacts());

This works in a way, but I would like it to open in the current tab.

Window.ContactsAvatars().open({transition:Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT});

Thankful for all input!


I suppose that your tabs group's name is tab.

Then, to force your transition style to the

tab.open({transition:Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT})

if it doesn't work, then try with the following snippet while calling the window to display :

tab.activeTab.open(contactsWindow,{animated:true,{transition:Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜