var Cell = ccui.Layout.extend({
ctor:function() {
this._super();
this.setAnchorPoint(0, 0);
this.setContentSize(cc.size(250, 250));
this.setTouchEnabled(true);
return true;
},
onTouchEnded:function(touch, event) {
log("aaaaaaaaa");
ccui.Layout.prototype.onTouchEnded.call(this, touch, event);
},
});
```
在点击这个对象的时候,onTouchEnded方法没有被执行,是不是这个方法不能被重载?
我记得是要把touchbegin, touchmove都重载了,才有效
另外几个onTouch方法都加上重载了,也是一样
另外几个onTouch方法都加上重载了,也是一