CALayer: callback when animation ends? -


I'm going to animate several collars at the same time with some issues, and hoping that someone I can tell in the right direction.

My app has an array of CALayer, each layer's status is set to (previous layer. position.y + previousLayer.bounds.height) , which is basically Combines them like tables. I have a method, every time it is called, adds a new layer to the stack and sets that its Y position is set to 0. The Y positions of all the other layers in the array are then filled with the height of the new layer (essentially pushing all the old layers down)

Problems with me are coming, till the last animation is complete Stopping adding layers. When an inherent animation has ended, what is the way to say it? Alternatively, if I use CABasicAnimation and animation adfish , then there is no way to tell that when called animation code is?

You can set the arbitrary value for the key on your animation object. This means that you are animating your layer with animation and then you can query in animation DIDStop: Finish: You create your animation in this way:

  CABasicAnimation * Anim = [CABASIC with Animation Animation: @ "Status"]; // Set another field ... [Animate set value: return tieAmate Foreke: @ "Layer"]; // Start the animation [Return to customizationAnimation: for anem: ke: zero];  

Then check the value when the animation is off:

  - (zero) animation add desktop: (animation) * Animation ended: (BOOL) Flag {CALayer * Animated Layer = [Animation Value Forekey: @ "Layer"]; // Do something with the layer on the basis of some situation ... // Spin with the next animation ... [CATERNSE start selection]; [Cataract Set Value: (ID) KCF BlueOntre: KKARRnanceAction Disassembly Action]; [Animated layer set status: position]; [Catransens Cameat]; }  

This is a clear animation, but you should do what you need.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -