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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:22:08+00:00 2026-05-27T13:22:08+00:00

I have got the following code: – (void)tableView:(UITableView *)tableView commitEditingStyle: (UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {

  • 0

I have got the following code:

 - (void)tableView:(UITableView *)tableView commitEditingStyle:   (UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {

 if (editingStyle == UITableViewCellEditingStyleDelete) {
 [self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationNone];
 [[delegate contentArray] removeObjectAtIndex:indexPath.row];
 [self.tableView reloadData];
}
if (editingStyle == UITableViewCellEditingStyleInsert) {
}
}

Now when I run it, the edit button works and the delete interface comes up, but I get a SIGABRT error when I press the delete button.

I am not sure how to read the log files yet, but if you need them, tell me how to get them to you:-)

EDIT:

I have posted the console log here:

GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Mon Aug  8 20:32:45 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".sharedlibrary apply-load-rules all
Attaching to process 41600.
2011-12-15 14:35:31.932 OrderList[41600:b903] *** Assertion failure in -[UITableView     _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit-1448.89/UITableView.m:995
2011-12-15 14:35:32.227 OrderList[41600:b903] *** Terminating app due to uncaught  exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of    rows in section 0.  The number of rows contained in an existing section after the update (4)  must be equal to the number of rows contained in that section before the update (4), plus or minus the number of rows inserted or deleted from that section (0 inserted, 1 deleted).'
*** Call stack at first throw:
(
0   CoreFoundation                      0x00fd55a9 __exceptionPreprocess + 185
1   libobjc.A.dylib                     0x01129313 objc_exception_throw + 44
2   CoreFoundation                      0x00f8def8 +[NSException raise:format:arguments:] + 136
3   Foundation                          0x008173bb -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116
4   UIKit                               0x00092e8b -[UITableView(_UITableViewPrivate) _endCellAnimationsWithContext:] + 8420
5   UIKit                               0x00081cf8 -[UITableView deleteRowsAtIndexPaths:withRowAnimation:] + 56
6   OrderList                           0x00002546 -[RootViewController tableView:commitEditingStyle:forRowAtIndexPath:] + 166
7   UIKit                               0x0007f037 -[UITableView(UITableViewInternal) animateDeletionOfRowWithCell:] + 101
8   UIKit                               0x000144fd -[UIApplication sendAction:to:from:forEvent:] + 119
9   UIKit                               0x000a4799 -[UIControl sendAction:to:forEvent:] + 67
10  UIKit                               0x000a6c2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
11  UIKit                               0x000a57d8 -[UIControl touchesEnded:withEvent:] + 458
12  UIKit                               0x00038ded -[UIWindow _sendTouchesForEvent:] + 567
13  UIKit                               0x00019c37 -[UIApplication sendEvent:] + 447
14  UIKit                               0x0001ef2e _UIApplicationHandleEvent + 7576
15  GraphicsServices                    0x00cd6992 PurpleEventCallback + 1550
16  CoreFoundation                      0x00fb6944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
17  CoreFoundation                      0x00f16cf7 __CFRunLoopDoSource1 + 215
18  CoreFoundation                      0x00f13f83 __CFRunLoopRun + 979
19  CoreFoundation                      0x00f13840 CFRunLoopRunSpecific + 208
20  CoreFoundation                      0x00f13761 CFRunLoopRunInMode + 97
21  GraphicsServices                    0x00cd51c4 GSEventRunModal + 217
22  GraphicsServices                    0x00cd5289 GSEventRun + 115
23  UIKit                               0x00022c93 UIApplicationMain + 1160
24  OrderList                           0x00001bcd main + 125
25  OrderList                           0x00001b45 start + 53
    )
    terminate called throwing an exception(gdb) 

–Jeff

  • 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-27T13:22:09+00:00Added an answer on May 27, 2026 at 1:22 pm

    This is the key line from the log:

    Terminating app due to uncaught  exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of    rows in section 0.  The number of rows contained in an existing section after the update (4)  must be equal to the number of rows contained in that section before the update (4), plus or minus the number of rows inserted or deleted from that section (0 inserted, 1 deleted).'
    

    mattjgalloway is 100% correct about the solution. I hope he posts that as an answer so that he can get credit for it.

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

Sidebar

Related Questions

while compiling the following code i have got error @Override public void routeCustomerRequest (int
I have got the following code from here to read an Excel file using
I have got the following very simple code: function init() { var articleTabs =
I have the following code and got myself confused: I have a query that
I've got code similar to the following... <p><label>Do you have buffet facilities?</label> <asp:RadioButtonList ID=blnBuffetMealFacilities:chk
I have got following code: I have a enum: public enum HardwareInterfaceType { Gpib
I have got the following code : <ul> <li class=jstree-leaf kids=0 range=5-7 name=mars public_id=mars_05
I have got the following code #include <iostream> #include <string> template <typename T> class
i have following code #include <stdlib.h> #include <stdio.h> int sorter( const void *first_arg,const void*
I have got following code witch are sending xml file on HTTP protocol and

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.