0
votes

I have a UIView custom. In this UIView custom, I have a small UIImageView. When I move finger through it, it will move with my finger. To do that, I use UIPanGestureRecognizer (add this gesture to UIImageView). But when I move finger with begining point not in UIImageView, it will not handle this event. So, my question is "How to get event touch move of UIView when move finger from outside view ?" Thanks.

2
You have to get the touch move on the outside view and check if the touch coordinates are over the UIImageViewjcesarmobile
Thank you. I think that is a good answer and final answer. I will try it.huync

2 Answers

1
votes

Best approach is create a uiview with necessary size(which is larger than uiimageview). Place the uiimageview inside it. Add gesture recognizer to uiview instead of uiimageview. In the delegate method of geature, move the image view.

0
votes

There is a "Touch Drag Enter" Event which might be what you are looking for.