IOS gesture Conflict

Source: Internet
Author: User

UITableView and ScrollView cannot be greeted Touchbegin

iOS Development gesture--uigesturerecognizer Coexistence
Key in this row, if you double-click to determine if the reconnaissance failure will trigger the click
[Singlerecognizer Requiregesturerecognizertofail:doublerecognizer];

About Uiscrollview Unable to respond to Uitouch event resolution overlay Touch Event the Uigesturerecognizer analysis of gesture operation of iOS
    • UITapGestureRecognizer

    • UIPinchGestureRecognizer

    • UIRotationGestureRecognizer

    • UISwipeGestureRecognizer

    • UIPanGestureRecognizer

    • UILongPressGestureRecognizer

从名字上我们就能知道,Tap (TAP), Pinch (pinch), Rotation (rotate), Swipe (sliding, fast moving, is used to monitor the direction of the slide), Pan (drag, slow movement, is used to monitor the amount of offsets), and longpress (Long Press).

resolve gesture conflicts in right-slip return gestures and Uiscrollview

Principle:
The pan gesture of the scrollview will invalidate the pan gesture of the system, so we only need to allow two gestures to be enabled at the same time when the system gesture fails and the ScrollView position is in the initial position.

Solution to the UITableView swipe gesture conflict problem on iOS plus Uiscrollview

IOS gesture Conflict

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.