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 6912921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:09:07+00:00 2026-05-27T09:09:07+00:00

In an iPad app, wherever a user is touching the screen I want to

  • 0

In an iPad app, wherever a user is touching the screen I want to display an image, highlighting the points they are touching. The app contains a number of nested views, all of which should receive touches and behave normally.

Seems simple, but I’ve failed to find a good way to do it. Using the touches began: with event and related functions on the root view controller does not work because if a subview is touched the events are not fired. I’ve also created a ‘dummy’ gesture recognizer which just passes touch events to another class which draws images. That works great-ish and buttons work, but breaks UIScrollViews and I’m guessing other subviews with gesture reconizers.

Is there nowhere you can just access all touch events without affecting where those touches are headed?

thanks.

  • 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-27T09:09:08+00:00Added an answer on May 27, 2026 at 9:09 am

    Your dummy gesture recognizer should be ok. Just watch out for setting states. possible -> began -> …

    Basically your gesture recognizer is forwarding all touches so it can be in began or possible state all the time while any touch exists.

    To get rid of problems with other gesture recognizers return YES in this delegate method.

    - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
        return YES;
    }
    

    Other option is to subclass main UIWindow in your app and override this method

    - (void)sendEvent:(UIEvent *)event
    

    Here you should have access to all events. It’s quite easy to filter them.

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

Sidebar

Related Questions

I am developing an iPad app that has a large number of UIViewControllers ,
In ipad app I want to set UISplitViewController method set in portrait mode.(i.e Like
Our iPad app uses a webkit UI for a lot of the user interaction,
In my current Ipad app, I have a split screen view in which the
My ipad app is working correctly, the only problem is with launch image. i
In my iPad app, I want the users to be able to resize a
My iPad app displays a movie full screen using the convenient MPMoviePlayerViewController class. I
my iPad app has a small download facility, for which I want to append
My iPad app is master-detail styled. The detail view contains a self-defined view (let's
My iPad app contains a single view somewhere in the app that supports landscape

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.