Merge pull request #8763 from ledenis/label-in-samples

Changed deprecated LabelTTF::create() to Label::createWithTTF() in the H...
This commit is contained in:
minggo 2014-10-17 09:37:23 +08:00
commit 4544ecff4e
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ bool HelloWorld::init()
// add a label shows "Hello World"
// create and initialize a label
auto label = LabelTTF::create("Hello World", "Arial", 24);
auto label = Label::createWithTTF("Hello World", "Arial", 24);
// position the label on the center of the screen
label->setPosition(Vec2(origin.x + visibleSize.width/2,