Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15659] iOS7: Table View last row separator line missing when footer title is set as empty

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2013-11-14T16:37:15.000+0000
Affected Version/sRelease 3.1.3
Fix Version/sn/a
ComponentsiOS
LabelssupportTeam
ReporterEduardo Gomez
AssigneeIngo Muschenetz
Created2013-11-04T21:55:34.000+0000
Updated2017-03-22T21:05:05.000+0000

Description

Issue description

Table view last row separator line is missing when footer title is set as empty. When last row gets clicked appears on-screen. Developers were setting the footer title as empty to the table as a workaround to solve the empty rows getting displayed in a table (this was working fine on iOS6 with earlier Titanium SDKs. But the same is not working on iOS7 with 3.1.3 SDK).

Runnable sample

Run snippet and select latest row.
var win = Ti.UI.createWindow({
    title : "home",
    backgroundColor : "white",
    top : 20
});

var data = [];

for (var i = 0; i < 5; i++) {
    data[i] = Ti.UI.createTableViewRow({
        title : 'row' + i,
        height : 50,
        left : 50,
        color : 'red'
    });
}

var view = Ti.UI.createView({
    backgroundColor: 'white',
    height: 0 //prevent setting the GROUPED style and top: -35
});
var table = Ti.UI.createTableView({
     data : data,

    //Set an empty footerView hides the empty rows and separator last row renders correctly (iOS7).
    footerView: view,

    //Group of rows extends the full width of the screen.
    //style: Ti.UI.iPhone.TableViewStyle.GROUPED 

    //GROUPED style introduces extra space at the top of TableView
    //top: -35 //work around for remove it 
});

win.add(table);
win.open();

Attachments

FileDateSize
iOS7_TiSDK3.1.3.GA_1.jpg2013-11-04T21:55:34.000+000063653
iOS7_TiSDK3.1.3.GA_2.jpg2013-11-04T21:55:34.000+000065065

Comments

  1. Eduardo Gomez 2013-11-11

    Setting footerView height: 0 hides the empty rows, separator of last row renders correctly (iOS7) and no extra space is added at the top of tableView.
  2. Lee Morris 2017-03-22

    Closing ticket as invalid with reference to the above comments.

JSON Source