iOS: Simultaneous scale and 3D rotation animation

前端 未结 2 1110
忘掉有多难
忘掉有多难 2020-12-14 13:27

I made a video demonstrating the animation i\'m trying to accomplish: Here it is.

Notice the video illustrates the action as it would be seen from the side. The came

2条回答
  •  感情败类
    2020-12-14 13:50

    I found a way but its more like a hack. Do the following -

    1)create a view with transparent background - (this view will translate) 2)create a subview of 1) - (this view will rotate).

    Now use create two transforms, a scaling transform for view 1) and a rottaion transform for view 2) and apply them simultaneously.

提交回复
热议问题