开发者

Animation - growing shrinking image scale

开发者 https://www.devze.com 2023-01-22 20:28 出处:网络
This seems like it should be easy enough, but I\'m not able to figure out out tonight and have been searching but not finding anything relevant on the forums.

This seems like it should be easy enough, but I'm not able to figure out out tonight and have been searching but not finding anything relevant on the forums.

All I want to do is change the scale of a UIImageView to shrink it or grow it.

[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1];
[UIView setAnimationCurve:UIViewAnimationCurveLinear];

image.whatDoIDoTo开发者_开发百科MakeItGrowOrShrink?=)

[UIView commitAnimations];


imageView.transform = CGAffineTransformMakeScale(0.5f, 0.5f); // shrink to half.
0

精彩评论

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

关注公众号