iOS 开发中,可用 UIView 的下述方法实现图片的缩放动画效果:

+ transitionWithView:duration:options:animations:completion:

 

示例代码:

[UIView animateWithDuration:kAnimationDuration
                 animations:^{
                        _imageView.transform = CGAffineTransformMakeScale(1.2, 1.2); //宽高渐变
                        _imageView.alpha = 0.f; //设置透明度渐变
                } completion:^(BOOL finished) {
                //完成后的一些操作
}];