user281300
user281300

Reputation: 1457

UIView animation cancels previous animation?

I have an NSTIMER that counts the time, and on t = 10, it fires an animation but during that time it might happen that another animation is running. This causes the previously running animation to cut off.

Any idea? i thought UIVIEW animations were ran in diff threads. I cannot use a willstop selector here since t = 10 might happen while another animation is running and might not have ended yet.

Upvotes: 4

Views: 486

Answers (1)

Jacob Relkin
Jacob Relkin

Reputation: 163228

You need to call [UIView setAnimationBeginsFromCurrentState:YES];

Upvotes: 4

Related Questions