我想創建一個動畫,使得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