开发者

changing animationDuration while animating

开发者 https://www.devze.com 2022-12-24 16:23 出处:网络
Hi all i want to change animationDuration of a UIImageView while it\'s animating ... and want t开发者_JS百科o do this 60 times a second... is there any way to do this ?

Hi all i want to change animationDuration of a UIImageView while it's animating ... and want t开发者_JS百科o do this 60 times a second... is there any way to do this ? When I try to do it, the animation stops ...


Why do you want to do this? There are different curves to make things speed up or slow down. If you do really need to do this, just start a new animation with the same parameters, but with your new duration. It should then begin the animation from wherever it had got to and carry on from there.

0

精彩评论

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