I am trying to remove a line from the list, however, the program does it every time.
- (void) Table Views: (UITableView *) TV Kmiting Style: (UITableViewCellEditingStyle) RowAtIndexPath for editing style: (NSIndexPath *) indexPath {if (editingStyle == UITableViewCellEditingStyleDelete) {[self Delete .logList object object: [index row line]]; [TV Htaavattindakspathः [Ansaararaaraarad object: Indekspeth] the Sathroanimeshn: Uaitiblwvuiwaraanimeshn fade]; }} exception:
to cancel app without exception exception 'NSInternalInconsistencyException', reason: 'Invalid update: section invalid number of rows 0 . Update (5) the following shall be equal to the number of rows contained in that section the number of rows contained in an existing section update (5) before, plus or went to reduce the number of rows inserted into the section (0, 1 deleted is.). '
Can someone tell me in the right direction? Is it necessary for me to update the number of lines of datastrip?
Try something like:
- (minus) table Views: (UITableView *) TV made editing genre: (UITableViewCellEditingStyle) ROOWAtIndexPath for editing style: (NSIndexPath *) indexPath {if (editingStyle == UITableViewCellEditingStyleDelete) {[TV beginUpdates]; [TV Htaavattindakspathः [Ansaararaaraarad object: Indekspeth] the Sathroanimeshn: Uaitiblwvuiwaraanimeshn fade]; [Remove Self.logList Objektatindeks [Indekspath line]]; [TV and Updates]; }}
Comments
Post a Comment