ios4 - How to control animation speed? -


I am taking an image and then expanding the image. The problem is that what is my image growing rapidly is there any way to run 2 animation and control speed? Here's the code:

  - (IBAction) pushmove {[UIView startAnimations: zero reference: NULL]; [UIView Set Animation Duration: 2.5]; Square.transform = CGFene Transmeter Transmission (-200, -300); [UIView Set Animation Duration: 1.5]; Square.transform = CGF TransFormsMacecale (8, 8); [UIView commitAnimations];    

Yes!

It is possible and quite easy. The main thing is that the CA animation implies the CAMediaTiming protocol. Therefore you can set the speed on either CAAnimation or CAAnimationGroup :

  myAnimationGroup.speed = 2;   

So if the term is 4 , your group will be executed in 2 seconds.

Some of Apple's videos are very helpful on this topic, including CAMediaTiming in the WWDC 2010 session 424 and it uses checkout 46: 30 seconds in the video.

Here's the link:

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -