I have a UIImageView
, which I want to be able to resize and rotate etc.
Can a UIGestureRecognizer
be added to the UIImageView
?
I would want to add a rotate and pinch recognizer to a UIImageView
which would be created at runtime.
How does one add these recognizers?
Best Answer
Check that
userInteractionEnabled
isYES
on theUIImageView
. Then you can add a gesture recognizer.