- void HelloWorld::valueChanged()
- {
- // 利用tag 来确定
- CCControlSlider *slider = (CCControlSlider * )this->getChildByTag(921);
- CCLabelTTF * label =(CCLabelTTF * )this->getChildByTag(922);
- label->setString(CCString::createWithFormat("滑动条的当前值 = %.02f",serif; font-size:12px; line-height:1.8em">
- }