iOS – Memory leak when subclass "CALayer"
CALayer.presentationLayer will trigger the method “initWithLayer” automatically, so, make sure you overwrite that init method and do some thing necessary.
Another trick for free, set a fast speed to main window’s layer can ignore all animations on auto test.
Write the code. Change the world.