{ "id": "63287", "key": "TIMOB-2655", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-02-29T15:30:23.000+0000", "created": "2011-04-15T03:26:03.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "15458", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "86500", "key": "TIMOB-7660", "fields": { "summary": "iOS: Moving rows between sections & hard crash", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T22:07:00.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Several issues presently exist with dragging between sections in\r\na TableView in iOS (I have not tested this issue in Android).

\r\n\r\n

== First Problem ==

\r\n

*** Terminating app due to uncaught exception\r\n'NSInternalInconsistencyException', reason: 'Invalid update:\r\ninvalid number of rows in section 1. The number of rows contained\r\nin an existing section after the update (0) must be equal to the\r\nnumber of rows contained in that section before the update (2),\r\nplus or minus the number of rows inserted or deleted from that\r\nsection (0 inserted, 0 deleted).

\r\n

This exception is thrown when I have 3 sections, one that has 4\r\nrows and the other two empty. I can drag a row from the top\r\n(populated) section down to the middle section and that error is\r\nthrown. I can not drag a row to the bottom section.

\r\n

== Second Problem ==

\r\n

Terminating app due to uncaught exception\r\n'NSRangeException', reason: ' -[NSMutableArray\r\nobjectAtIndex:]: index 1 beyond bounds [0 .. 0]'

\r\n

This exception is thrown when I have any number of sections,\r\npopulated or not, and drag a row from one section to the BOTTOM of\r\nanother section. Dragging a row to the top or center or any other\r\nrow but the bottom results in no errors.

{html}", "attachment": [], "flagged": false, "summary": "Dragging Between TableViewSections in iOS Crashes if new Section has no Rows", "creator": { "name": "timbuckingham", "key": "timbuckingham", "displayName": "Tim Buckingham", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "timbuckingham", "key": "timbuckingham", "displayName": "Tim Buckingham", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129101", "author": { "name": "timbuckingham", "key": "timbuckingham", "displayName": "Tim Buckingham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Just for reference: iOS SDK 4.2, Titanium Developer 1.2.2,\nTitanium SDK 1.5

{html}", "updateAuthor": { "name": "timbuckingham", "key": "timbuckingham", "displayName": "Tim Buckingham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:03.000+0000", "updated": "2011-04-15T03:26:03.000+0000" }, { "id": "414044", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T22:07:00.000+0000", "updated": "2017-03-20T22:07:00.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }