I have a layer tree, part of which looks as follows:
+ CALayer ("slot") + CALayer ("envelope") + CALayer ("event") + CALayer ("event image") + CALayer ("group icon") + [UILabel layer] ("group count")
The zPosition of the event, icon, and label layers is 0.0.
The group icon is supposed to appear (visually) in the top right corner of the event image and serves as background for the label. That worked as expected so far, I could even animate the event layer and the icon stayed where it should.
Now I added an additional animation to the event layer. As far as I can tell the code changes affect the event layer and the event image layer only. However, suddenly the icon and the label are gone, even before the animation runs. :-(
More precisely, it seems they are shrouded by the event layer: If I set @event.hidden = YES@ then I can verify that the icon and the label are still where they are supposed to be. I suspected that I screwed up the sublayer order but a dump of the layer tree to the console showed the sublayer order unchanged. I also tried to assign the layers different zPositions, to no avail.
Has anyone a tip how I can further debug this issue? I ran out of ideas.