I have an UIAnimation with duration, delay, options, animation and completion.
In the animation I'm just moving a view around by setting it's frame.
CGPoint newPoint;
newPoint = CGPointMake(x + offset, button.center.y);
And then in the completion block I return the view to it's original position which I've stored off somewhere.
completion:^(BOOL finished)
{
view.center = oldPosition;
}
My problem is that when I'm moving the button around via a swipe gesture, the animation seems to fail half way done. I'm wondering what exactly would cancel a animation on a view if I never call [view.layer removeAllAnimations]. Is there anything going on behind the scenes that would cancel the animation(possibly another animation)?
EDIT: I'm really just wondering about if there is anything that UIAnimation blocks do behind the scenes that could possibly cause this behavior.