CCLabelTTF

 

// align label to the right

label.anchorPoint = CGPointMake(1, 0.5f);

 

// align label to the left

label.anchorPoint = CGPointMake(0, 0.5f);

 

// align label to the top

label.anchorPoint = CGPointMake(0.5f, 1);

 

// align label to the bottom

label.anchorPoint = CGPointMake(0.5f, 0);

// use case: place label at top-right corner of 

 

    

//设置显示宽度

    boostdescriptionLabel->setDimensions(CCSizeMake(200, 0));

 

posted @ 2014-09-17 11:21  六界剑仙  阅读(133)  评论(0)    收藏  举报