【已解决】UILabel自动换行问题(中文,代码创建)

适用cocostudio可视化操作创建的UIlabel可以正常换行,但是使用代码创建的并且也是中文不能正确换行。有解决方案么?

UILabel *pLabel = UILabel::create(); 
pLabel->setText(pDic->valueForKey("descript")->getCString()); 
pLabel->setContentSize(CCSizeMake(220,24)); 
pLabel->setTextAreaSize(CCSizeMake(220,0)); 


```

 

setContentSize、setTextAreaSize加与不加都没有任何区别

:2: 手动用空格或者\n隔开才会换行!

跟踪了下代码:
UIWidget 的 ignoreContentAdaptWithSize 设置为false,再进行UIWidget 的 setSize进行设置即可。

pLabel->ignoreContentAdaptWithSize(false);
pLabel->setSize(CCSizeMake(300,100));


```

纯字母能换行?