我想创建一个动画,使得imageView变得越来越小,透明,然后消失。我试过下面的代码,它不起作用,运行时它会从0.01尺寸增加到原始尺寸。我无法弄清楚问题出在哪里。iOS-UImageView缩放动画不起作用
非常感谢!
[UIView animationWithDuration:2 animations:^{
[imageview setTransform:(CGAffineTransformMakeScale(0.01,0.01))];
[imageview setAlpha:0];
}
completion:^(BOOL finished){
[imageview removeFromSuperview];
}];
以U R电话验证码哪种方法? – samfisher