29,048
社区成员




[UIView animateWithDuration:2 animations:^{
[UIView animationWithDuration:2 animations:^{
CGAffineTransform *transform = CGAffineTransformScale(imageView.transform, 0.01, 0.01);
[imageview setTransform:transform];
[imageview setAlpha:0];
}
completion:^(BOOL finished){
[imageview removeFromSuperview];
}];
这可能要考虑进行现有的imageView转换.
另外一种方法可以试试:UIViewAnimationOptionBeginFromCurrentState,作为一个选项添加到动画方法中:
+ (void)animateWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay options:(UIViewAnimationOptions)options animations:(void (^)(void))animations completion:(void (^)(BOOL finished))completion{
}