Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5983915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:17:57+00:00 2026-05-22T22:17:57+00:00

after finding out that there is a bug in the UITapGestureRecognizer ( How to

  • 0

after finding out that there is a bug in the UITapGestureRecognizer ( How to cancel button tap if UIGestureRecognizer fires? ) I am thinking about detecting two finger taps and two finger double-taps in the touchesEnded method of my view controller.

Here is the situation, what I want to do and my problem:

Situaion: I have a UIView, managed by a UIViewController. This view contains multiple UIButtons that react to taps.

What I want: I want to react to two finger taps and to two finger double-taps on my view but also to one finger taps on the UIButtons.

Problem: Once a button is tapped (even if using two fingers on the view) the touchesEnded method on my view controller isn’t called anymore.
How can I cancel button taps when more than one finger is used?

I already tried to subclass UIView and use the hitTest method, but the touches property of the event is always empty in this. Also I tried to overlay the buttons with a transparent UIView, but this also cancels the button touches.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:17:58+00:00Added an answer on May 22, 2026 at 10:17 pm

    @Mark I was trying to get your example from the other day working. As it is a bug, I altered it to use a tap recognizer. It’s not a true solution as you don’t get a clicked effect on the button but the right button messages the Touch Up Inside event. You can check out those changes here. See if it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Silverlight Beta 4 for a LOB application. After finding out today that
updated following Dirk's suggestion After finding out about emacs' check-parens and show-parens modes in
I'm finding that after my app has been in the background for a while,
I'm attempting to use the AuthenticationForm form with django and finding out that I
After finding out how to manually commit a Play! JPA transaction ... I'm not
After finding that FutureTask running in a Executors.newCachedThreadPool() on Java 1.6 (and from Eclipse)
After being told by at least 10 people on SO that version control was
After reading a bit more about how Gnutella and other P2P networks function, I
After hours of debugging, it appears to me that in FireFox, the innerHTML of
I have quite a problem with finding out how to distribute the web based

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.