Search code examples
iphoneanimationuiviewanimationtransition

UIViewAnimationTransitionCurlDown on UIImageView?


I was messing with UIView animations and I found the setAnimationTransition method which takes certain constants.

One of them is UIViewAnimationTransitionCurlDown.

I was wondering if this type of transition was possible on a UIImage view and how would I go about implementing it?

Thanks Tom


Solution

  • [UIImageView beginAnimations:nil context:NULL];
    [UIImageView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:YourView cache:YES];
    [UIImageView setAnimationDuration:1.5];
    /// ----> [YourView CodeTo Be Done];
    [UIImageView commitAnimations];