issue #4636. replace __String with StringUtils::format

This commit is contained in:
andyque 2014-04-03 17:42:04 +08:00
parent 9bcfea2279
commit c501aa2dec
1 changed files with 1 additions and 2 deletions

View File

@ -58,8 +58,7 @@ bool UIPageViewTest::init()
imageView->setPosition(Point(layout->getSize().width / 2.0f, layout->getSize().height / 2.0f));
layout->addChild(imageView);
__String *textContent = __String::createWithFormat("page %d", (i + 1));
Text* label = Text::create(textContent->getCString(), "fonts/Marker Felt.ttf", 30);
Text* label = Text::create(StringUtils::format("page %d",(i+1)), "fonts/Marker Felt.ttf", 30);
label->setColor(Color3B(192, 192, 192));
label->setPosition(Point(layout->getSize().width / 2.0f, layout->getSize().height / 2.0f));
layout->addChild(label);