Saturday, December 7, 2013

Pinch and Rotate gestures distinguish

Creating a gesture recognition objects added to the table, there are tap, pinch and rotate gestures
IIICurrently appears pinch and rotate conflict, are there any good solution?
Reply:
- (BOOL) gestureRecognizer: (UIGestureRecognizer *) gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer: (UIGestureRecognizer *) otherGestureRecognizer
{
return YES;
}
Reply:
This I know, and can pinch and rotate, but the effect is not good.
Now the situation when you want to pinch operation may occur rotate.
I think there is a distinction between these two gestures, or that there is a limited pinch or rotate operation methods, thanks!
Reply:
I'm just looking, not speech
Reply:
The reply was deleted at the moderator 2012-03-22 13:33:51

Reply:
Positive solution
cited a floor southbirdfly reply:
- (BOOL) gestureRecognizer: (UIGestureRecognizer *) gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer: (UIGestureRecognizer *) otherGestureRecognizer
{
return YES;
}

Reply:
I forgot to say that the return no
references, 5th Floor mark_dark reply:
positive solution

Cited a floor southbirdfly reply:
- (BOOL) gestureRecognizer: (UIGestureRecognizer *) gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer: (UIGestureRecognizer *) otherGestureRecognizer
{
......

No comments:

Post a Comment