Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Animation - growing shrinking image scale

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.whatDoIDoToMakeItGrowOrShrink?=)

[UIView commitAnimations];
like image 634
RanLearns Avatar asked Nov 02 '10 07:11

RanLearns


1 Answers

imageView.transform = CGAffineTransformMakeScale(0.5f, 0.5f); // shrink to half.
like image 102
kennytm Avatar answered Oct 18 '22 13:10

kennytm