Opening door effect using Core Animation

后端 未结 1 1401

I\'m trying to create a transition/animation on a UIView that looks something like the image in the link below. It would start with a UIView that is a standard rectangle sh

1条回答
  •  庸人自扰
    2021-01-03 05:30

    What you're hoping to achieve is fairly straight-forward if you aren't worried about adding any shading or lighting to the door.

    Check out this post from this forum: How do I apply a perspective transform to a UIView?

    It should point you in the right direction. You'll have to play around with the actual position of the door (ie making the perspective believable) but the code here should give you a good idea of how to transform the UIView (a CALayer really).

    Good luck, James

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