UIViewAnimationTransitionCurlDown on UIImageView?

2019-08-31 16:38发布

问题:

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

回答1:

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