Locking UIImageView on move
I travel a UIImageView
via touchesBegan
, touchesMoved
, touchesEnded
. It works well, but the strokes also apply to other UIImageView
s lying around.
How to block touching activity while moving UIImageView
? I tried this with boolean but it didn't work because it touchesMoved
gets called every time it UIImageView
moves not just once.
a source to share
If I understand correctly, you are trying to make sure that only one image is affected by the user interaction at any time. If that's the case, just install imageView.exclusiveTouch = YES
. Once a touch starts in any view with enabled exclusiveTouch
, no other view in that window registers any touches.
a source to share