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) {
                //完成后的一些操作
}];

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2021-08-15
  • 2021-07-08
  • 2022-12-23
猜你喜欢
  • 2021-06-04
  • 2021-07-03
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
相关资源
相似解决方案