开发者

UIView animation cancels previous animation?

开发者 https://www.devze.com 2023-01-01 01:05 出处:网络
I have an NSTIMER that counts the time开发者_C百科, 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 anim

I have an NSTIMER that counts the time开发者_C百科, 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.


You need to call [UIView setAnimationBeginsFromCurrentState:YES];

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号