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
舉報
2015-09-15
檢查父節點對象是否成功取到