I am new to working with Core Animation and I was hoping somebody could help me.
I am trying to display two subviews (with layers) on a view in a particular order but I am unable to do it in the correct order.
One of the subviews (A) contains a single layer of polygons (drawn using NSBezierPath) while the other subview (B) has multiple layers each containing an image. I want to display subview A on top of subview B but the subview B always get displayed on top.
I have tried changing the order of adding the subviews to the main view but the result is always the same.
I have tried this before successfully on subviews without any layers. Any help is appreciated.