Cocos2d iphone 固定宽度的多行标签

Cocos2d iphone 固定宽度的多行标签,cocos2d-iphone,Cocos2d Iphone,在用于iPhone的cocos2d中,如何创建具有固定宽度的多行标签(文本框) 目前,我正在使用: CCLabelTTF *labelTextTop = [CCLabelTTF labelWithString: @"My long string that should be placed in two lines, instead of in one extremely long one." fontName:

在用于iPhone的cocos2d中,如何创建具有固定宽度的多行标签(文本框)

目前,我正在使用:

CCLabelTTF  *labelTextTop = [CCLabelTTF labelWithString: @"My long string that should be placed in two lines, instead of in one extremely long one."
                                        fontName:        @"Marker Felt" 
                                        fontSize:        40];

这是我目前使用的:

CGSize size;
size.width=400;
size.height=110;
sayBubbleTextDisplayed_=[[CCLabelTTF  labelWithString:@"some long and winded blabla "  
                                           dimensions:size 
                                            alignment:UITextAlignmentLeft 
                                        lineBreakMode:UILineBreakModeWordWrap
                                             fontName:@"American Typewriter" 
                                             fontSize:16] retain];