How to synchronize multiple animations in different views
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 theCAMediaTiming
protocol. 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
精彩评论