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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:34:11+00:00 2026-06-10T00:34:11+00:00

I have a situation where elements in a UITableViewCell subclass have either tap gesture

  • 0

I have a situation where elements in a UITableViewCell subclass have either tap gesture recognizers or UIButtons.

When I tap these, not only do its handlers get called, but so does the didSelectRowAtIndexPath: delegate method.

Now, ideally, if the user doesn’t tap any of those elements, this should be passed on to the view underneath (i.e. the tableview or table cell) and be processed.

Why aren’t these elements swallowing the touches and preventing the TableView delegate method from firing?

  • 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-06-10T00:34:12+00:00Added an answer on June 10, 2026 at 12:34 am

    I “hacked” a solution which puts a tapGesture recognizer on the contentView of my UITableViewCell subclasses, whose delegate is my custom UITableViewController subclass. I use an empty didSelectRowAtIndexPath: implementation. The delegate method is

    - (void)didSelectTableCell:(MyTableViewCell*)aCell;
    

    And that did the job. Just need to remember when the cell is created to make sure I set the delegate.

    Inelegant, but works fine.

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

Sidebar

Related Questions

I have a situation where particular elements (xs:simpleType, xs:complexType) are placed in the output
I have the following situation: A stackpanel contains a number of elements, including some
I have a situation that i have a hidden div with two input elements
quick and probably dumb question. I have the following situation: I select multiple elements
The situation: I have several lists; in each of these lists, the text inside
I have a situation where elements are changed on the fly through a specific
I have a situation where I have two elements, which are as follows in
So here is my situation: I have a bunch of DOM elements in a
I have run into a strange situation where I need to float two elements.
I have a situation where all my selectors all have the same ancestor element

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.