[AC-3054] tableview appendRow crashes
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2011-07-28T10:04:02.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | 1.7.0, 1.7.1, appendrow, crash, crashes, ios, mobile, mobilesdk, regression, sdk, tableview, tableviewrow, tableviewrows |
| Reporter | Unknown |
| Assignee | Tony Guntharp |
| Created | 2011-06-30T11:10:56.000+0000 |
| Updated | 2016-03-08T07:48:05.000+0000 |
Description
Starting with 1.7 final (and maybe RC, didn't test it), appendRow is crashing.
Just try that:
var win = Titanium.UI.currentWindow;
var table = Titanium.UI.createTableView();
for(var cars = 0; cars < 200; cars +=1 )
{
table.appendRow(Titanium.UI.createTableViewRow({
title:'Row ' + cars,
}));
}
win.add(table);
There is a thread on the Q&A about it (and maybe more): http://developer.appcelerator.com/question/121022/tableview-problem-with-17-final-but-not-in-beta
This seems like a problematic regression.
When testing this I did not replicate the crash you are reporting... please place JUST the following code to your app.js and test it. If it crashes, please paste the content of the log into pastebin or something and share the link back here.
var win = Titanium.UI.createWindow(); var table = Titanium.UI.createTableView(); for(var cars = 0; cars < 200; cars +=1 ) { table.appendRow(Titanium.UI.createTableViewRow({ title:'Row ' + cars, })); } win.add(table); win.open();Closing until reporter claims this ticket
Closing issue. If any new information comes to light that justifies it, then please reopen.