Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1601] Assertion Failure deleting a TableViewSection

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2015-09-29T02:53:20.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Titanium SDK & CLI
Labelsios, iphone
ReporterNathan Edwards
AssigneeShak Hossain
Created2015-02-26T14:48:31.000+0000
Updated2016-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.

Comments

No comments

JSON Source