If I give you a simple answer, the answer will not be ...
but I have an alternative for this to make a function that you can call recursively, like ..
-(void)animationRecursive { [UIView animateWithDuration:0.001 animations:^{ // Here set frame slide different from last frame use incremental variables // for x,y,width,height //yourImageView.frame = set frame //yourImageView.image = set image } completion:^(BOOL finished) { if(![yourImage.frame isEqualToString NSStringFromCGRect(yourFinalCGRectAfterAnimation)] { [self animationRecursive]; } }]; }
hope this helps you .............
source share