简体   繁体   中英

UIImageView with gestures recognizers Xcode Ios

I have a UIImageView with gestures recognizers (scale, rotate, translate).

But after using it, the gestures don't work.

And my UIImageview changes the size and position.

How to fix this issue?

By default, UIImageViews do not have user interaction enabled. Try setting your UIImageView's user interaction enabled to "YES":

[myImageView setUserInteractionEnabled:YES];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM