I want to out multiline text in CCLabeTTF. It I am able. But I want that the text appeared smoothly. For this I use action CCFadeIn. $ //Multiline output description
description =[descriptions valueForKey:@"text_MainHistory"];
float fontSize =22;
CGSize maxSize = {500, 400};
CGSize actualSize = [description sizeWithFont:[UIFont fontWithName:@"Arial" size:fontSize] constrainedToSize:maxSize lineBreakMode:UILineBreakModeWordWrap];
CGSize containerSize = {actualSize.width, actualSize.height};
descriptionText = [CCLabelTTF labelWithString:description dimensions:containerSize alignment:UITextAlignmentCenter fontName:@"Arial" fontSize:fontSize];
descriptionText.position = ccp(screenSize.width/2,screenSize.height/2);
descriptionText.color = ccc3(128, 64, 0);
[descriptionText runAction:[CCSequence actions:[CCFadeIn actionWithDuration:5.0f], nil]];
[self addChild:descriptionText z:2];
但是,在半秒的业绩上,案文似乎并消失,然后开始国家合作框架。
我的错误在哪里?