开发者

How to synchronize multiple animations in different views

开发者 https://www.devze.com 2023-04-06 06:06 出处:网络
I\'m working on an iPhone application开发者_运维技巧 that uses pulsating buttons and displays a clock.. so I need to synchronize the pulsating buttons with one another and with the clock display..

I'm working on an iPhone application开发者_运维技巧 that uses pulsating buttons and displays a clock.. so I need to synchronize the pulsating buttons with one another and with the clock display..

I'm no Core Animation expert, but so far the only synchronization mechanisms I have found work between CALayers of the same view. Am I missing something or is there really no way of synchronizing animations between views and with external events?

Any pointers in the right direction would be greatly appreciated!

BTW the app is specifically developed for iOS 5 should that make any difference.


Just answered something very similar recently. You'll need to use theCAMediaTimingprotocol. For more details and links to Apple's great video on this subject see my answer to this post:

If statement on NSNotificationCenter in iOS

0

精彩评论

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