Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

99miles

macrumors member
Original poster
Oct 10, 2008
50
0
I'm animating a UIView to a new Y location by changing the frame like this:

[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:duration];
[UIView setAnimationDelegate:self];
mview.frame = newFrame;
[UIView commitAnimations];

Let's say newFrame currently has origin.y = 100. Now, while it's animating I need to change that to 200. Is there anyway to update the current animation or do I have to cancel the first one and start a new animation? I did try that, but there's a noticeable pause where the first animation stop and the new one starts.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.