I have three CALayers and I would like to do something like this
layer1.hidden = NO;
layer1.opacity = 0.0f; //fade out
layer2.hidden = NO;
layer2.opacity = 0.0f;
layer3.hidden = NO;
layer3.opacity = 0.0f;
Now that actually works fine and in runs fine. The problem with that type of code would be that the three layers would fade out simultaneously. But I want them to fade out after the previous layer has faded out, ie. layer2 should appear and fade out after layer1 has faded out and not simultaneously.
Can anybody give me a hint how I can do such "dependent" animations?