新手

hanxiangmoran
Wed, 26 Mar 2014 05:11:27 +0000

问个问题
Layout* root = static_cast<Layout*>(_widget->getChildByName(“Panel_20”));
Label* show_content = dynamic_cast<Label*>(Helper::seekWidgetByName(root, “Label__network speed”));
show_content->addTouchEventListener(this,toucheventselector(UpgradingLayer::showLoadingSpeed));

这样不行啊！报No number named  addTouchEventListener in cocos2d::Label

为什么 3.0rc中不可以给label添加点击事件吗

阅读整个主题