Apple documentation claims that the Core Animation action key kCAOnOrderOut has one single purpose: to animate the layer out of sight when it either hides or calls -removeFromSuperlayer. I mean only the last case in this matter.
In practice, when -removeFromSuperlayer is called, this layer is immediately removed and animation is not performed on it.
It was outlined that this is the difference between the Presentation and Model levels, but I'm not experienced enough in Core Animation to know what to do about it.
If anyone can explain how to make the animation run before the layer is deleted, when the animation returns for the kCAOnOrderOut key, this will be appreciated at least by me and several other people.
Thank.
source
share