2014-09-25 58 views
0
var row = Titanium.UI.createTableViewRow({ 
     chatId : data.chat_id, 
     title: 'New Account ', 
     backgroundColor: '#FFFFFF', 
     selectedBackgroundColor : 'transparent', 
     selectionStyle : 'Titanium.UI.iPhone.TableViewCellSelectionStyle.NONE on createTableViewRow', 
     width : '100%', 
     height : '60' 
    }); 


    $.tableview.appendRow = row; 

似乎沒有工作,儘管以下文檔。將行添加到現有表(鈦)

乾杯。

回答

1

appendRow是一種方法,不是財產,所以你必須改變:

$.tableview.appendRow = row; 

到:

$.tableview.appendRow(row); 
+0

感謝菲爾,是有道理的。 – bobo2000 2014-09-26 01:21:27