Advertisement
Guest User

Untitled

a guest
Sep 10th, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. - (void) tableView: (UITableView *) tableView commitEditingStyle: (UITableViewCellEditingStyle) editingStyle forRowAtIndexPath: (NSIndexPath *) indexPath {
  2. NSLog(@"Removing %@ row %d.", [dataModel objectAtIndex: indexPath.row], indexPath.row);
  3. [tableView deleteRowsAtIndexPaths: [NSArray arrayWithObjects: indexPath, nil] withRowAnimation: UITableViewRowAnimationFade];
  4. [dataModel removeObjectAtIndex: indexPath.row];
  5. }
  6.  
  7. 2010-08-27 21:53:17.971 SportWatch[1299:307] *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit/UIKit-1262.58/UITableView.m:920
  8. 2010-08-27 21:53:17.992 SportWatch[1299:307] *** 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).'
  9. *** Call stack at first throw:
  10. (
  11. 0 CoreFoundation 0x35411ed3 __exceptionPreprocess + 114
  12. 1 libobjc.A.dylib 0x311f0811 objc_exception_throw + 24
  13. 2 CoreFoundation 0x35411d15 +[NSException raise:format:arguments:] + 68
  14. 3 Foundation 0x332b932f -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 62
  15. 4 UIKit 0x338dcda1 -[UITableView(_UITableViewPrivate) _endCellAnimationsWithContext:] + 4524
  16. 5 UIKit 0x338d586d -[UITableView _updateRowsAtIndexPaths:updateAction:withRowAnimation:] + 204
  17. 6 UIKit 0x338d5775 -[UITableView deleteRowsAtIndexPaths:withRowAnimation:] + 20
  18. 7 SportWatch 0x000060e7 -[MainViewController tableView:commitEditingStyle:forRowAtIndexPath:] + 670
  19. 8 UIKit 0x338d3c3f -[UITableView(UITableViewInternal) animateDeletionOfRowWithCell:] + 58
  20. 9 UIKit 0x33984071 -[UITableViewCell(UITableViewCellInternal) deleteConfirmationControlWasClicked:] + 28
  21. 10 CoreFoundation 0x353b9719 -[NSObject(NSObject) performSelector:withObject:withObject:] + 24
  22. 11 UIKit 0x33831d59 -[UIApplication sendAction:to:from:forEvent:] + 84
  23. 12 UIKit 0x33831cf9 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
  24. 13 UIKit 0x33831ccb -[UIControl sendAction:to:forEvent:] + 38
  25. 14 UIKit 0x33831a1d -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 356
  26. 15 UIKit 0x3383206b -[UIControl touchesEnded:withEvent:] + 342
  27. 16 UIKit 0x338309f5 -[UIWindow _sendTouchesForEvent:] + 368
  28. 17 UIKit 0x3383036f -[UIWindow sendEvent:] + 262
  29. 18 UIKit 0x3382ae13 -[UIApplication sendEvent:] + 298
  30. 19 UIKit 0x3382a74b _UIApplicationHandleEvent + 5110
  31. 20 GraphicsServices 0x3171a04b PurpleEventCallback + 666
  32. 21 CoreFoundation 0x353a6ce3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26
  33. 22 CoreFoundation 0x353a6ca7 __CFRunLoopDoSource1 + 166
  34. 23 CoreFoundation 0x3539956d __CFRunLoopRun + 520
  35. 24 CoreFoundation 0x35399277 CFRunLoopRunSpecific + 230
  36. 25 CoreFoundation 0x3539917f CFRunLoopRunInMode + 58
  37. 26 GraphicsServices 0x317195f3 GSEventRunModal + 114
  38. 27 GraphicsServices 0x3171969f GSEventRun + 62
  39. 28 UIKit 0x337d148b -[UIApplication _run] + 402
  40. 29 UIKit 0x337cf69f UIApplicationMain + 670
  41. 30 SportWatch 0x00002b23 main + 70
  42. 31 SportWatch 0x00002ad8 start + 40
  43. )
  44. terminate called after throwing an instance of 'NSException'
  45. Program received signal: “SIGABRT”.
  46. kill
  47. Current language: auto; currently objective-c
  48. quit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement