开发者

UIViewAnimationTransitionCurlDown on UIImageView?

开发者 https://www.devze.com 2023-01-15 08:39 出处:网络
I was messing with UIView animations and I found the setAnimationTransit开发者_如何转开发ion method which takes certain constants.

I was messing with UIView animations and I found the setAnimationTransit开发者_如何转开发ion 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


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

精彩评论

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