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

  • Home
  • SEARCH
  • 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 8138603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:32:41+00:00 2026-06-06T11:32:41+00:00

I have a table inside of another table. I can add cells to both

  • 0

I have a table inside of another table. I can add cells to both the “supertable” and “subtable” with no problem – they’ll display, scroll, etc. However, when I try to interact with the “subtable” (select one of its textfields for editing) the program crashes. I ran the zombies tool on the program and it backtraced the crash to this code (I am using ARC):

- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    if (saveTheTable == nil) saveTheTable = tableView;
    static NSString *licenseCellId = @"licenseID";
    UINib *nib = [UINib nibWithNibName:@"LicenseCell" bundle:nil];
    [tableView registerNib:nib forCellReuseIdentifier:licenseCellId];

    //This line causes the crash
    LicenseCell *cell = [tableView dequeueReusableCellWithIdentifier:licenseCellId];

    cell.delegate = self;
    [licenseFields replaceObjectAtIndex:indexPath.row withObject:cell];

    return cell;
}

The responsible caller is the UITextField. It seems that the “subtable” is being dealloc’d by an autoreleasepool drain. Why would this be and how can I fix it? I tried storing strong references to the cells.

-Edit- Maybe the backtrace will help

* thread #1: tid = 0x1f03, 0x017a309b libobjc.A.dylib`objc_msgSend + 15, stop reason = EXC_BAD_ACCESS (code=2, address=0x8)
    frame #0: 0x017a309b libobjc.A.dylib`objc_msgSend + 15
    frame #1: 0x003c7c7e UIKit`-[UITextField canBecomeFirstResponder] + 167
    frame #2: 0x00405fe7 UIKit`-[UIResponder becomeFirstResponder] + 179
    frame #3: 0x005e58fb UIKit`-[UITextInteractionAssistant setFirstResponderIfNecessary] + 208
    frame #4: 0x005e75f8 UIKit`-[UITextInteractionAssistant oneFingerTap:] + 1989
    frame #5: 0x005dfe29 UIKit`_UIGestureRecognizerSendActions + 143
    frame #6: 0x005df133 UIKit`-[UIGestureRecognizer _updateGestureWithEvent:] + 379
    frame #7: 0x005e03bf UIKit`-[UIGestureRecognizer _delayedUpdateGesture] + 46
    frame #8: 0x005e2a21 UIKit`___UIGestureRecognizerUpdate_block_invoke_0541 + 57
    frame #9: 0x005e297c UIKit`_UIGestureRecognizerApplyBlocksToArray + 277
    frame #10: 0x005db3d7 UIKit`_UIGestureRecognizerUpdate + 1026
    frame #11: 0x003401a2 UIKit`-[UIWindow _sendGesturesForEvent:] + 1121
    frame #12: 0x00340532 UIKit`-[UIWindow sendEvent:] + 93
    frame #13: 0x00326dc4 UIKit`-[UIApplication sendEvent:] + 464
    frame #14: 0x0031a634 UIKit`_UIApplicationHandleEvent + 8196
    frame #15: 0x01f9aef5 GraphicsServices`PurpleEventCallback + 1274
    frame #16: 0x012b3195 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
    frame #17: 0x01217ff2 CoreFoundation`__CFRunLoopDoSource1 + 146
    frame #18: 0x012168da CoreFoundation`__CFRunLoopRun + 2218
    frame #19: 0x01215d84 CoreFoundation`CFRunLoopRunSpecific + 212
    frame #20: 0x01215c9b CoreFoundation`CFRunLoopRunInMode + 123
    frame #21: 0x01f997d8 GraphicsServices`GSEventRunModal + 190
    frame #22: 0x01f9988a GraphicsServices`GSEventRun + 103
    frame #23: 0x00318626 UIKit`UIApplicationMain + 1163
    frame #24: 0x0000274d trainingAttendance`main + 141 at main.m:16
    frame #25: 0x000026b5 trainingAttendance`start + 53
  • 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-06T11:32:43+00:00Added an answer on June 6, 2026 at 11:32 am

    It turns out that, like phix23 said, the problem was with the registernib command. Here’s the new cellForRowAtIndexPath method:

    - (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    {
        if (saveTheTable == nil) saveTheTable = tableView;
        static NSString *licenseCellId = @"licenseID";
    
        LicenseCell *cell = (LicenseCell *)[tableView dequeueReusableCellWithIdentifier:licenseCellId];
        if( cell == nil ) {
            NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"LicenseCell" owner:self options:nil];
            cell = (LicenseCell *)[nib objectAtIndex:0];
        }
    
        cell.delegate = self;
        [licenseFields replaceObjectAtIndex:indexPath.row withObject:cell];
    
        if (nibRetainer == nil) nibRetainer = [[NSMutableArray alloc] initWithObjects:cell, nil];
        else [nibRetainer addObject:cell];
        return cell;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table with a tags nested inside the td tags. Problem is,
I have a form with the fields inside table cells. On the last column
I have to add secondary table inside on DPTable interface. How is it possible?
I have a sortable table in html and looking to put an add.png inside
I have a template that is rendered inside another GSP. I can't seem to
I have a table nested inside another table. I want to give the outer
I have a list of draggable table cells that can be dropped onto a
I have a table . Inside each cells there are so many dropdownlists. The
I have a table inside a form. It has two columns, the first one
I use telerik tabstrip in my mvc 3 application. I have a table inside

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.