We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当一个view有关联手势的时候,手势的优先级会比事件来的高,因此在我们触摸带手势的view的时候,如果先被手势识别器识别了,事件就不会传递给view 的UIResponder进行处理,但是我们知道手势是有状态的,也就是说手势识别是有一个过程的,因此在手势未被完全识别之前,事件是会被同时发送到UIResponder,以及UIGestureRecognizer,一旦手势识别器识别了某个手势之后,UIResponder就会的touchesCancelled:withEvent就会被调用,此后的事件都被UIGestureRecognizer独占,也就是只发往UIGestureRecognizer。如果识别失败手势状态将会被识别为UIGestureRecognizerStateFailed,这时候事件会继续发送给UIResponder,直到结束。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
当一个view有关联手势的时候,手势的优先级会比事件来的高,因此在我们触摸带手势的view的时候,如果先被手势识别器识别了,事件就不会传递给view 的UIResponder进行处理,但是我们知道手势是有状态的,也就是说手势识别是有一个过程的,因此在手势未被完全识别之前,事件是会被同时发送到UIResponder,以及UIGestureRecognizer,一旦手势识别器识别了某个手势之后,UIResponder就会的touchesCancelled:withEvent就会被调用,此后的事件都被UIGestureRecognizer独占,也就是只发往UIGestureRecognizer。如果识别失败手势状态将会被识别为UIGestureRecognizerStateFailed,这时候事件会继续发送给UIResponder,直到结束。
The text was updated successfully, but these errors were encountered: