我想在 CCLabeTTF 中输出多行文本。我有能力。但我希望文本顺利出现。为此,我使用动作 CCFadeIn。$ //多行输出说明
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];
但在性能半秒出现和消失的文字,然后开始CCFadeIn。
我哪里错了?