CCLabelTTF* label = CCLabelTTF::labelWithString("What is the label looks like depend on the content size of the label,and the content size is depend on the parameter const char *label and CGSize ", CCSizeMake(200, 0), CCTextAlignmentLeft, "Arial", 20); label->setPosition(ccp(size.width/2, size.height/2)); this->addChild(label);
I used the method before, but “Whatisthelabellookslikedependonthecontentsizeof the label,and the content size”, many words an not be displayed on the screen
test0.jpg (26.2 KB)
test.jpg (39.2 KB)