看到官方的test里面TableView()实例
new了一个新的tableView,
var table = new cc.TableView(this,cc.size(950, 400));
table.attr({
x : 115,
y : 164,
});
table.setDelegate(this);
table.setDirection(cc.SCROLLVIEW_DIRECTION_HORIZONTAL);
this.addChild(table);
table.reloadData();
为什么没有效果。
tableCellTouched:function (table, cell) {
cc.log("cell touched at index: " + cell.getIdx());
},
tableCellAtIndex:function (table, idx) {
}
这些方法也没有进来。求大神解决。
介绍下cocos2d-js 的tableView()的用法
谢谢~