Iphone 动画-图像缩放
这看起来应该很容易,但我今晚没办法弄清楚,我一直在搜索,但在论坛上找不到任何相关内容 我所要做的就是更改UIImageView的比例以缩小或增大它Iphone 动画-图像缩放,iphone,image,animation,uiimageview,scaling,Iphone,Image,Animation,Uiimageview,Scaling,这看起来应该很容易,但我今晚没办法弄清楚,我一直在搜索,但在论坛上找不到任何相关内容 我所要做的就是更改UIImageView的比例以缩小或增大它 [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1]; [UIView setAnimationCurve:UIViewAnimationCurveLinear]; image.whatDoIDoToMakeItGrowOrShrink?=) [UIVi
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1];
[UIView setAnimationCurve:UIViewAnimationCurveLinear];
image.whatDoIDoToMakeItGrowOrShrink?=)
[UIView commitAnimations];
令人惊叹的!也帮了我:)谢谢你的问题和答案!
imageView.transform = CGAffineTransformMakeScale(0.5f, 0.5f); // shrink to half.