Search code examples
iosuiviewanimationuiviewanimationtransition

UIView - Animating a view


I would like to have my UIView opening to one side with the press of a button. I mean just like a door would open, with its side fixed, but not a complete rotation, just to a 30-40° angle. How can I do that? I tried flipping the UIView with UIViewAnimationOptionTransitionFlipFromBottom, but it flips completely and with the axis at its center, not to one side. How can I do that?


Solution

  • This SO question talks about how to create a page turn animation like the Flipboard iPad app. You could certainly use this as a starting point to make an animation that only flips part of the way:

    Flipboard animation