CATransform3D rotate causes half of image to disappear

后端 未结 3 1520
粉色の甜心
粉色の甜心 2021-02-07 04:05

I\'m using the following code to rotate an image, but half the image (down the y-axis) that has been rotated \"out of\" the page, disappears. How to fix? heading i

3条回答
  •  别那么骄傲
    2021-02-07 04:41

    The solution to this was to set the zPosition property of all my layers appropriately. Thanks is due to @Brad Larson, who suggested this solution in a comment here. It seems that, when you start using CATransform3D, the normal zindex view hierarchy established by addsubview is thrown out the window.

提交回复
热议问题