Rectangle 27 0

ios Why does a transformed UIView overlap other views that are higher in the hierarchy?


@property CGFloat zPosition;

The layers position on the z axis. Animatable. The default value of this property is 0. Changing the value of this property changes the the front-to-back ordering of layers onscreen. This can affect the visibility of layers whose frame rectangles overlap. The value of this property is measured in points.

Note
Rectangle 27 0

ios Why does a transformed UIView overlap other views that are higher in the hierarchy?


The view hierarchy is like a series of sheets of paper - they can be "on top" of each other, but there is no real depth. As soon as you put a 3D transform on a layer, this will have some depth and, if you've rotated it around the x axis, this will be sticking out in front of the other views.

You could try adjusting the z position of the layer to move it behind other views.

Note
Rectangle 27 0

ios Why does a transformed UIView overlap other views that are higher in the hierarchy?


@property CGFloat zPosition;

The layers position on the z axis. Animatable. The default value of this property is 0. Changing the value of this property changes the the front-to-back ordering of layers onscreen. This can affect the visibility of layers whose frame rectangles overlap. The value of this property is measured in points.

Note
Rectangle 27 0

ios Why does a transformed UIView overlap other views that are higher in the hierarchy?


The view hierarchy is like a series of sheets of paper - they can be "on top" of each other, but there is no real depth. As soon as you put a 3D transform on a layer, this will have some depth and, if you've rotated it around the x axis, this will be sticking out in front of the other views.

You could try adjusting the z position of the layer to move it behind other views.

Note