[AC-1610] Custom TableViewRows created with Alloy are not released from memory
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Resolved |
| Resolution | Needs more info |
| Resolution Date | 2015-09-29T05:04:55.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Alloy |
| Labels | TableViewRow, alloy, andoid, controller |
| Reporter | Francois Brosseau |
| Assignee | Shak Hossain |
| Created | 2015-03-15T20:46:28.000+0000 |
| Updated | 2016-03-08T07:38:05.000+0000 |
Description
Test code:
data = database.searchExercises(value);
for (var i=0; i<data.length; i++) {
var arg = {
title: data[i].title,
type: data[i].type,
className : 'row'
};
var row = Alloy.createController('row', arg).getView();
tempData.push(row);
}
$.searchResults.setData(tempData);
<Alloy>
<TableViewRow id="rowView" className="row">
<View id="containerView">
<Label id="rowLabel"></Label>
<View id="optionView"><View id="toolsView"></View></View>
</View>
</TableViewRow>
</Alloy>
I'm having the same problem with IOS, maybe I'm doing something wrong ..
HI, Please provide a simple test case to reproduce your problem, that will be really helpful to address the problem. Here is the guide about [how to create a teat case for JIRA ticket](http://docs.appcelerator.com/titanium/3.0/#!/guide/How_to_Submit_a_Bug_Report-section-29004732_HowtoSubmitaBugReport-CreatingaTestCase). Thanks Regards, Shuo