I am making an iOS App. I have several CALayer
objects that eventually will be deleted by a (shrinking) animation. When the animation is completed, and animationDidStop:finished
is invoked, I would like to remove the CALayer
object from the super view and delete it.
CALayer
object in
animationDidStop:finished
? I would have guessed that the
CAanimation
-object had a pointer to the layer, but I can't find it
in the doc. When you create the animation and set the delegate, just pass the CALayer you want to remove with your animation.
As for removing all the animations, you have two options: