cocostudio2.0.5回调问题

button=dynamic_cast<Button*>(node->getChildByName(“Button_1”));
button->addTouchEventListener(CC_CALLBACK_2(PropsSynthesis::addPropsSynthesis, this));

崩溃提示
this cocos2d::ui::Widget * NULL 0x0000000000000000
callback const ccWidgetTouchCallback & 0x00007fff5c3daf70 0x00007fff5c3daf70

:10: :10:

是点了回调后崩溃吗?

还是在addTouchEventListener崩溃了?

在addTouchEventListener 就崩了。新方法用不明白。这个也崩,引擎版本 3.3 rc2。

估计是获取的按钮指针为空。