Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Cannot Reproduce
-
Affects Version/s: None
-
Fix Version/s: Sprint 2011-32
-
Component/s: iOS
-
Environment:
- IOS 4.2, IOS 4.3
- Titanium 1.7.0, 1.7.1
- mac os 1.6.7
Description
If you use setdata on IOS the tableviewrow dont release. If I compile with 1.7.0 Release Candidate there is no problems. This only appears if I try to compile to 1.7.0 final or 1.7.1. Using Intruments its clear the behavior difference between 1.7 RC and 1.7.1 and 1.7.0
Test case bellow:
var win = Titanium.UI.createWindow( |
{
|
title: 'Tableview Test' |
});
|
var runNumber = 0; |
var tableview = Titanium.UI.createTableView({ |
backgroundColor: 'white', |
border: 1,
|
borderColor: '#E0E0E0', |
width: 315,
|
height: 450,
|
left: 35,
|
top: 75,
|
allowsSelection: true, |
separatorStyle: Ti.UI.iPhone.TableViewSeparatorStyle.SINGLE_LINE
|
});
|
|
win.add(tableview);
|
|
var buttomSetData = Titanium.UI.createButton({ |
title: 'Set data', |
bottom: 50,
|
right: 480,
|
border: 1,
|
height: 100,
|
width: 47
|
});
|
|
buttomSetData.addEventListener('click', function (e) { |
var tableviewData =[]; |
|
for(var i=0;i<200;i++) |
{
|
var row1 = Ti.UI.createTableViewRow(); |
var infoLabel = Titanium.UI.createView({ |
height: 12,
|
width: 12,
|
//backgroundImage :'images/delrow.png', |
backgroundColor: 'red', |
top: 8,
|
left: 20
|
});
|
|
var textLabel = Ti.UI.createLabel({ |
color: '#000', |
text: 'Run number ' + runNumber + ' Row number ' + i, |
font: {
|
fontSize: 15
|
},
|
top: 5,
|
left: 50,
|
height: 20,
|
width: 260
|
});
|
row1.add(textLabel);
|
row1.add(infoLabel);
|
tableviewData.push(row1);
|
|
}
|
tableview.setData(tableviewData);
|
|
runNumber++
|
});
|
win.add(buttomSetData);
|
win.open();
|