How do I animate/rotate a UIView 90 degress from its upper right corner?

前端 未结 3 1394
清歌不尽
清歌不尽 2021-02-02 04:01

I\'ve been searching for hours trying to find a way to animate/rotate a UIView 90 degrees from the upper right corner.

The effect should almost work like a swinging door

3条回答
  •  忘了有多久
    2021-02-02 04:25

    You should try setting the anchor point of the layer to (0,1), and than animate the layer.

提交回复
热议问题