Sunday, December 8, 2013

[Help] UIScrollView GestureRecognizer deal with the problem

We are currently creating a UIView, in which added a UIScrollView. UIView and adds pinch and tap GestureRecognizer.
Problem, now do pinch operation, pinch and scroll UIScrollView UIScrollView in conflict, is there any solution?
It is best to take precedence pinchGestureRecognizer.
Thanks!
Reply:
See View penetrating approach corresponding event
Reply:
cited a floor ybh37 reply:
approach See View penetrate the corresponding event

Thank exhibitions.
But userInteractionEnabled not dynamically set, still does not solve the problem
If a response ScrollView finger scrolling, two more responses pinchGestureRecognizer what way?
Reply:
When setting ScrollView pinch of ScrollEnable to NO, such as pinch gesture ends and then set it back. . .
So you see is not feasible?
Reply:
userInteractionEnabled controls effectively, but it lost text function

enable it to lose most of the functionality is

You can put some vertical slip or slide laterally removed a look. . .
Reply:
reference to the third floor southbirdfly reply:
pinch when setting ScrollView of ScrollEnable to NO, such as pinch gesture ends and then set it back. . .
So you see is not feasible?

How to judge it? UIScrollView intercepts touch events, priority judgments. I will ScrollView of ScrollEnable to NO, you can achieve the desired effect. Thanks!

No comments:

Post a Comment