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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:20:32+00:00 2026-06-09T02:20:32+00:00

I have been having an issue with my app crashing on selecting something in

  • 0

I have been having an issue with my app crashing on selecting something in the tableView. This is not 100% reproducible, but it happens relatively often.

What happens is inside my EventListViewController class (a subclass of UITableViewController), I overwrite the didSelectRowAtIndexPath function because I am using a search bar in this class as well, and I want it to only select when you are not searching.

The code looks like this:

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    if(!searching)
        [super tableView:tableView didSelectRowAtIndexPath:indexPath];
}

However, when it crashes, I break on exception and this is the message I get, on the line that calls the super function:

[EventListViewController tableView:didSelectRowAtIndexPath:]: unrecognized selector sent to instance 0xa648e50

I printed out some stuff on the debugger and it all looks fine to me:

(lldb) po 0xa648e50
(int) $1 = 174362192 <EventListViewController: 0xa648e50>

(lldb) po self
(EventListViewController *) $2 = 0x0a648e50 <EventListViewController: 0xa648e50>

(lldb) po tableView
(UITableView *) $3 = 0x070fd400 <UITableView: 0x70fd400; frame = (0 0; 320 367); clipsToBounds = YES; autoresize = W+H; layer = <CALayer: 0x6e46750>; contentOffset: {-0, -0}>

(lldb) po indexPath
(NSIndexPath *) $4 = 0x06e8caf0 <NSIndexPath 0x6e8caf0> 2 indexes [1, 1]

(The tableView has 2 sections,and the second section has 2 entries)

Anyone have any Idea what is happening? let me know if you need any more information.

Note: after more investigation I have found that this is 100 % reproducible with the following steps:
1: load the app, and click on either of the two entries.
2: Go back to the tableView controller
3: tap BELOW both of the entries, in the white space where there shouldn’t be a cell
The app will crash, but notice that the indexPath doesn’t say its trying to select a cell that is outside the bounds of the tableView, just that the tableView didSelectRowAtIndexPath method doesn’t exist

  • 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-09T02:20:33+00:00Added an answer on June 9, 2026 at 2:20 am

    The call to super in tableView:didSelectRowAtIndexPath: is unnecessary. If I remember correctly, UITableViewController does not provide a default implementation of that method. Thus, your call to super results in a crash.

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

Sidebar

Related Questions

I have been having this issue in iterating through an array of keys and
I have been having an issue with the $this->delete() method that deletes a record
Good morning. I've been having this issue for some days and have been lokking
I have been trying to fix this problem for hours. My app keeps crashing
I have been experiencing an intermittent issue in my Rails app, and I'm having
We have been having a random issue with our live website. We're not sure
I am having an issue with somethign that I thoguth woudl have been simple.
I have been having these really odd problems with Visual Studio 2010. At this
I have been having this annoying problem when trying to implement a picture gallery
I have been having some real trouble with this for a while. I am

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.