I have an cocos project in cocos2dx 3.13.1. I have used .plist file to fetch texts for my application. Previously there was only about 80 lines of texts (each line having around 24-25 characters), now according to clients requirement, text will be about 200-250 lines of text. When I increased texts to more than 113 lines of text, only background image will displayed (text not displayed) for any iOS Devices and sony Xperia z1, and the text is displayed in sony Xperia Z5 and samsung galaxy s7 edge. All the texts are displayed properly While logging text in console in Xcode. Following is the error I have found in console.
Please check the following code segment
‘’’
CCLOG(“Ending Text Log : %s”, text.c_str() );
_labelEnding->setString(text);
CCLOG(“Ending Text Log : %s”, text.c_str() );
_labelEnding->setDimensions(_labelEnding->getContentSize().width, _labelEnding->getContentSize().height);
_bakcbg->runAction(Sequence::create(
FadeTo::create(1,60),
TargetedAction::create(_menuSkip,FadeTo::create(1,255)), //SKIP
DelayTime::create(1), //3 seconds WAIT
TargetedAction::create(_labelEnding,Sequence::create(scrollactions)),
FadeTo::create(3,255), //Brighten
DelayTime::create(4), // WAIT 3 seconds
FadeTo::create(1,0), //BG 表示
CallFunc::create(CC_CALLBACK_0(labelEnding::actionEnding2,this)),
NULL
));
‘’’
In above code, all the texts are logged properly in console, but the text are not displayed in iphone5, iphone 6 and iphone 6s+ and sony xperia z1 and displayed in smsung galaxy s7 edge and xperia z5.
When i replaced fourth line of the above code by below code
‘’’
_labelEnding->setDimensions(_labelEnding->getContentSize().width, 4000);
‘’’
Texts are displayed in all the devices, but only displayed to 113 lines of text in every devices and the the error i have mentioned in above (glError) are also not displayed in console.
*Note: I have used data type string for storing data in .plist file.
is there any solution ot my issue.