开发者

Rotate and Scale UIImageView with animation

开发者 https://www.devze.com 2023-01-05 15:33 出处:网络
How can I get开发者_如何学Go a UIImageView to rotate itself 90° counter-clockwise and have the same UIImageView scale to fill the entire iPhone screen with animation at speeds of one-second?Create a

How can I get开发者_如何学Go a UIImageView to rotate itself 90° counter-clockwise and have the same UIImageView scale to fill the entire iPhone screen with animation at speeds of one-second?


Create a CGAffineTransform that embodies your rotation and scale, then set it as the transform property of your view inside of an animation block which has a 1 second duration.


I'm using .tranform and M_PI for rotation, and changing the frame size

0

精彩评论

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

关注公众号