Implementing touch-based rotation in cocoa touch

后端 未结 2 2054
长情又很酷
长情又很酷 2021-01-06 05:07

I am wondering what is the best way to implement rotation-based dragging movements in my iPhone application.

I have a UIView that I wish to rotate around its centre,

2条回答
  •  青春惊慌失措
    2021-01-06 05:40

    Have you considered using UIRotationGestureRecognizer? Seems like that has the logic already baked in, and might make things simpler.

提交回复
热议问题