[TIMOB-5430] Moving rows to an empty Section and then back in a Tableview causes crash
GitHub Issue | n/a |
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-02-29T15:31:59.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Sandeep Bhimavarapu |
Assignee | Neeraj Gupta |
Created | 2011-10-04T15:42:30.000+0000 |
Updated | 2017-03-21T23:12:44.000+0000 |
Description
Moving a row under one section to another (which is empty but has a headerView) and then back to the original section causes the app to crash.
Sample code:
{noformat}
var win = Ti.UI.createWindow({backgroundColor: 'white'});
var section1 = Ti.UI.createTableViewSection({
headerView:Ti.UI.createView({height: '50', backgroundColor: 'black'})
});
var section2 = Ti.UI.createTableViewSection({headerView:Ti.UI.createView({height: '50', backgroundColor: 'green'})});
for (var i=0; i < 5; i++) {
section2.add(Ti.UI.createTableViewRow({
title:'Row '+i
}));
}
var tv = Ti.UI.createTableView({
data:[section1,section2],
moving: 'true'
});
win.add(tv);
win.open();
{noformat}
Attachments
Please attach a symbolocated crash log.
Reggie, I have added them
Closing ticket as duplicate with reference to the above comments and links.