Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8365] iOS: Table view with sections display different results on iOS, than android

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-07-09T04:07:13.000+0000
Affected Version/sRelease 2.0.0, Release 1.8.2, Release 2.0.1
Fix Version/sRelease 2.1.0, Sprint 2012-11 API
ComponentsiOS
Labelsapi, module_tableview, parity, qe-testadded
ReporterDevang Gandhi
AssigneeVishal Duggal
Created2012-03-28T14:56:58.000+0000
Updated2012-07-25T11:53:08.000+0000

Description

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);
}

Attachments

FileDateSize
Screen Shot 2012-03-28 at 3.55.40 PM.png2012-03-28T14:56:58.000+000072940
Screen Shot 2012-03-28 at 3.55.55 PM.png2012-03-28T14:56:58.000+000077923

Comments

  1. Neeraj Gupta 2012-03-28

    @Devang - Please do not put merge-1.8.3 in the JIRA tickets directly. This tag has to be approved by engineering.
  2. Shawn Lipscomb 2012-03-29

    HD ticket https://support.appcelerator.com/tickets/APP-916859.
  3. Junaid Younus 2012-05-21

    Tested with 2.0.1GA2 on the iOS simulator, issue still reproducible. Works fine on a Samsung Galaxy S2, running 2.3.x.
  4. Vishal Duggal 2012-05-23

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/2256
  5. Shawn Lipscomb 2012-06-11

    Verified fixed in SDK 2.1.0.v20120608174150.
  6. Michael Pettiford 2012-06-23

    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
  7. Shyam Bhadauria 2012-07-09

    Re-opening to edit label

JSON Source