iphone Animation: why does rotating a UILabel around X axis cut off its bottom half?

前端 未结 1 1487
暖寄归人
暖寄归人 2021-01-03 00:37

I want to rotate a UILabel around the X axis, and animating it. But when the animation starts, the text of the label is cut in two, horizontally. The bottom half disappears,

相关标签:
1条回答
  • 2021-01-03 01:26

    X axis? That means during the rotation half of the UILabel will have z > 0 (in front of the screen) and half will have z < 0 (behind the screen).

    If there's other layers at z == 0 they will cover your UILabel's z < 0 half.

    Try to increase your label's layer's zPosition.

    0 讨论(0)
提交回复
热议问题