{ "id": "145190", "key": "AC-1601", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2015-09-29T02:53:20.000+0000", "created": "2015-02-26T14:48:31.000+0000", "labels": [ "ios", "iphone" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:38:04.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Working with Alloy, I have a condition in code that says that if those conditions are met, a couple of TableViewRows and TableViewSections need to be deleted. Here's that code:\r\n\r\n{{$.table.deleteRow(tableViewRow);}}\r\n{{$.table.deleteSection(1);}}\r\n\r\n\r\nHowever, the deleteSection line is actually causing this error to appear:\r\n\r\n{{ *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit:3318.16.14/UITableView.m:1313 }}\r\n\r\nFrom what I've found, this is caused by 2 animations being called in the runtime at the same time. \r\n\r\nPlaying with it further, only 1 deleteRow statement is executed at a time, but when you have a deleteRow and a deleteSection call in the same code block, they're both executed at the same time, resulting in this issue.\r\n\r\nWhat winds up happening is that all TableSections at or below the section being deleted wind up getting deleted themselves.\r\n\r\nThis is a bug that definitely needs fixing for sanity's sense.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Assertion Failure deleting a TableViewSection", "creator": { "name": "panoptical2", "key": "panoptical2", "displayName": "Nathan Edwards", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "panoptical2", "key": "panoptical2", "displayName": "Nathan Edwards", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS - iPad, iPhone", "comment": { "comments": [], "maxResults": 2, "total": 2, "startAt": 0 } } }