views:

324

answers:

1

Hello,

I move a UIImageView with touchesbegan, touchesmoved, touchesended. It works well, but is the touches get also applied to other UIImageViews, laying around.

How do I lock touching activity while moving the UIImageView? I've tried this with a Boolean Value, but it hasn't worked, because touchesmoved get called every time the UIImageView moves, not only one time.

Regards

+1  A: 

If I understand correctly, you're trying to make it so that only one imageView can be affected by user interaction at any time. If that's the case, just set imageView.exclusiveTouch = YES. Once a touch begins in any view with exclusiveTouch enabled, no other view in that window will register any touches.

BJ Homer