Label 字符串无法显示

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());
无法显示

为何??

help :6::6:

:6::6::6::6::6:

你这字符串在UI编辑器上是怎么做的
我发现UI编辑器上字符串显示了多宽,
在修改文字后也只能显示到那么宽,多余的文字会被截断,
是同一个问题么

这个不是截断,是完全不显示

:6: :6: :6:

编辑中设置为custom模式,
Label* lblName = dynamic_cast<Label*>(m_uiPrize->getWidgetByName(“Battlescore_self”));
lblName->setText(CCString::createWithFormat("%s:%s", “lg_name”, “aaaa”)->getCString());

在用setSize设置大小