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();
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.
Closing ticket as invalid with reference to the above comments.