mercredi 4 mars 2015

CCLabelTTF::setString not accepting white space at start and end of string


Vote count:

0




I'm trying to set value of a label in cocos2d-x. It's not showing spaces if I add them on start or end of string, like



label->setString("10 10");


working correctly. But if I use



CCLabelTTF::setString(" 10");
CCLabelTTF::setString("10 ");


it only show "10" , spaces are trimmed.



asked 32 secs ago







CCLabelTTF::setString not accepting white space at start and end of string

Aucun commentaire:

Enregistrer un commentaire