label问题 自动换行出问题了

//代码
UILabel* pLabel = UILabel::create();
pLabel->setFontSize(50);
pLabel->setText(“123456789123456789”);
pLabel->setTextAreaSize(ccp(100, 400));
addChild(pLabel);
文字没有根据textarea自动换行,上个版本是可以的

您好,请问您使用的是3.0RC0版本么?如果是请使用下面的方法改变。

text->ignoreContentAdaptWithSize(false);
text->setSize(Size(200, 150));

依然没有换行啊
UILabel* pLabel = UILabel::create();
pLabel->setFontSize(50);
pLabel->setText(“123456789123456789123456789123456789”);
//pLabel->setTextAreaSize(ccp(100, 400));
pLabel->ignoreContentAdaptWithSize(false);
pLabel->setSize(ccp(100, 600));
addChild(pLabel);

版本是2.2.3

顶一下…

请您使用中文测试,目前数字和纯英文字母会有无法中断的问题。或者在数字中添加空格。或者使用强制换行“\n”/"\r\n"。感谢您对cocostudio的支持。

哦谢谢了:7:

我刚刚测试了一下,我使用的是2.2.3,方法是把label的模式由Auto更改为Custom,然后调整高度及宽度即可。见下图。