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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:59:52+00:00 2026-05-13T18:59:52+00:00

I am trying to pass through touches from a custom UIView to a UITableView

  • 0

I am trying to pass through touches from a custom UIView to a UITableView underneath (the UIView is directly on top of the UITableView). However, it does not seem to be working.

In my custom UIView, I have tried all of the following (I’m using touchesMoved as an example but I’ve implemented this for all 4 touch methods)

- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event 
 {
  [self.nextResponder touchesMoved:touches withEvent:event];
 }

 - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {  [super
 touchesMoved:touches withEvent:event];
 }

I’ve even tried passing a pointer to the UITableView directly into the custom UIView and doing this:

 - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
  [self.myTableView touchesMoved:touches withEvent:event];
 }

None of these options seem to do anything as I can’t scroll the UITableView. Any ideas why this wouldn’t work?

  • 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-13T18:59:53+00:00Added an answer on May 13, 2026 at 6:59 pm

    If the UIView is not a subview of the UITableView, it will not pass it touches up the responder chain to the UITableView.

    However, the most likely culprit is a scrollview. Scrollviews trap all touches before sending them to subviews. This is backwards from the usual setup.

    Since the UITableView uses a scrollview it is likely that the scrollview is trapping the touches before they get to UIView itself.

    To test this, I suggest putting your UIView “over” i.e. make it a subview, of an ordinary view and get the responder chain to work like you wish. Then swap out the bottom/superview for a UITableView and see if it still works.

    If it doesn’t, the problem is the scrollview the table is imbedded in. I don’t know a work around for that.

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

Sidebar

Related Questions

I am trying to pass through some XML from an external website. What is
I'm trying to pass parameters (through c#) to the following XSLT to build a
i am trying to pass a string through the XmlHttp method. Let me show
I'm trying to pass a variable through a ssh connection, like this: working_dir=/home/user/some_dir/ ssh
I'm trying to pass a value from a select input control on an HTML
I'm trying to pass through several functions a string with a path but the
I am trying to pass data through my Intent into the next activity so
I am trying to pass several values through an IMultiValueConverter to a command (as
I'm trying to get a simple pass through geometry shader to work under Mac
I'm trying to pass an ArrayList from my first Activity to the next one.

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.