[AC-1601] Assertion Failure deleting a TableViewSection
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2015-09-29T02:53:20.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Titanium SDK & CLI |
Labels | ios, iphone |
Reporter | Nathan Edwards |
Assignee | Shak Hossain |
Created | 2015-02-26T14:48:31.000+0000 |
Updated | 2016-03-08T07:38:04.000+0000 |
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:
$.table.deleteRow(tableViewRow);
$.table.deleteSection(1);
However, the deleteSection line is actually causing this error to appear:
*** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit:3318.16.14/UITableView.m:1313
From what I've found, this is caused by 2 animations being called in the runtime at the same time.
Playing 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.
What winds up happening is that all TableSections at or below the section being deleted wind up getting deleted themselves.
This is a bug that definitely needs fixing for sanity's sense.
No comments