Titanium Community Questions & Answer Archive

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

Implementing a flipcard?

I'm trying to build a flipcard animation:
Flipping from first to the second one works:

users_view.animate({view:profile_view,transition:Ti.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT});

but when I try to do it in reverse

profile_view.animate({view:users_view,transition:Ti.UI.iPhone.AnimationStyle.FLIP_FROM_RIGHT});

it crashes.
What do I do wrong ? Thanks

— asked May 27th 2010 by Dan Tamas
  • animation
  • card
  • flip
  • transition
0 Comments

2 Answers

  • Try applying the animation to a parent view/window…

    container.animate({view:profile_view,transition:Ti.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT});
    container.animate({view:users_view,transition:Ti.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT});
    

    The container can be another view or the current window.

    — answered June 10th 2010 by TZ Martin
    permalink
    3 Comments
    • nope, is not working, or I'm dumb.
      do you have a woking code to share?

      — commented June 11th 2010 by Dan Tamas
    • were you ever able to solve this issue? I am facing the same problem and the above solution not seem to be helping

      — commented October 28th 2014 by Ravi Dixit
    • http://developer.appcelerator.com/question/178705/flip-animations-results-in-crash-in-ios-simulator

      I have posted this question with the source code and facing the same issue

      — commented October 28th 2014 by Ravi Dixit
  • The above answer is the solution.

    — answered June 10th 2010 by Todd Soligo
    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.