GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-07-09T04:07:13.000+0000 |
Affected Version/s | Release 2.0.0, Release 1.8.2, Release 2.0.1 |
Fix Version/s | Release 2.1.0, Sprint 2012-11 API |
Components | iOS |
Labels | api, module_tableview, parity, qe-testadded |
Reporter | Devang Gandhi |
Assignee | Vishal Duggal |
Created | 2012-03-28T14:56:58.000+0000 |
Updated | 2012-07-25T11:53:08.000+0000 |
The user is creating tableview with sections. The user is creating 2 sections, with 4 rows each in the tableview.
The code sample creates the view correctly on Android, but not on iOS. In iOS, 7 rows are added to the first section ,and 1 to another. Instead of 4 to the each section.
var win1 = Ti.UI.createWindow({
backgroundColor:'white',
navbarHidden:true
});
win1.open();
var lb1=Ti.UI.createTableView({backgroundColor:'blue',
height:Ti.UI.FILL,
width:Ti.UI.FILL
});
win1.add(lb1);
var RowParms;
for (var sec=0; (sec <= 1); sec++)
{
RowParms={title:'One',
header:'Section '+sec};
lb1.appendRow(RowParms);
RowParms={title:'Two'};
lb1.appendRow(RowParms);
RowParms={title:'Three'};
lb1.appendRow(RowParms);
RowParms={title:'Four'};
lb1.appendRow(RowParms);
}
@Devang - Please do not put merge-1.8.3 in the JIRA tickets directly. This tag has to be approved by engineering.
HD ticket https://support.appcelerator.com/tickets/APP-916859.
Tested with 2.0.1GA2 on the iOS simulator, issue still reproducible. Works fine on a Samsung Galaxy S2, running 2.3.x.
Pull pending https://github.com/appcelerator/titanium_mobile/pull/2256
Verified fixed in SDK 2.1.0.v20120608174150.
Closing issue Tested with Ti Studio build 2.1.0.201206211609 Ti Mobile SDK 2.1.0.v20120622174154 hash rdc9dfbe5 OSX Lion 10.7.3 iPhone 4S OS 5.1, iPad 2 OS 4.3.5 Verified expected behavior is shown
Re-opening to edit label