2016-01-21 55 views
0

tableview中的分隔符沒有顯示 例如。appcelerator tableview seprators沒有顯示

Ti.UI.backgroundColor = 'white'; 
var win = Ti.UI.createWindow(); 

var tableData = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ]; 

var table = Ti.UI.createTableView({ 
data: tableData 
}); 
win.add(table); 
win.open(); 

我也曾嘗試

table.separatorStyle = Ti.UI.iPhone.TableViewSeparatorStyle.SINGLE_LINE; 
table.separatorColor = "#000"; 

還試圖運行kitchsink,分離器是不是在所有

任何想法展示?

+0

您可以指定平臺名稱(iOS或Android)和Ti SDK版本。因爲當我檢查此代碼適用於iOS和Ti.UI.iPhone.TableViewSeparatorStyle.SINGLE_LINE;是僅iOS的財產。 –

+0

是的我正在嘗試使用SDK - 5.1.2.GA – testuser

+0

更新 - 在iphone 6模擬器上沒有顯示的seprators,但顯示當我安裝在設備上,但頂部行分隔符和底部行分隔符仍然不顯示 – testuser

回答