button按钮的逻辑标签读取不出来,vs运行一直会报错
for (int i=0; i < 3; i++){
Button * button = static_cast<Button *>(layout->getChildByTag(120+i));
button->addTouchEventListener(CC_CALLBACK_2(MenuLayer::touchCallback, this));
}
for (int i=0; i < 3; i++){
Button * button = static_cast<Button *>(layout->getChildByTag(120+i));
button->addTouchEventListener(CC_CALLBACK_2(MenuLayer::touchCallback, this));
}
2015-09-14
举报