Label* lblName = dynamic_cast<Label*>(m_uiPrize->getWidgetByName(“Battlescore_self”));
lblName->setText(CCString::createWithFormat("%s:%d", “lg_name”, 2)->getCString());
可以正常显示
Label* lblName = dynamic_cast<Label*>(m_uiPrize->getWidgetByName(“Battlescore_self”));
lblName->setText(CCString::createWithFormat("%s:%s", “lg_name”, “aaaa”)->getCString());
无法显示
为何??