UIGestureRecognizer on UIImageView

前端 未结 8 1160
南旧
南旧 2020-11-28 01:32

I have a UIImageView, which I want to be able to resize and rotate etc.

Can a UIGestureRecognizer be added to the UIImageView?

8条回答
  •  悲哀的现实
    2020-11-28 02:32

    You can also drag a tap gesture recogniser to the image view in Storyboard. Then create an action by ctrl + drag to the code.

提交回复
热议问题