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));

浙公网安备 33010602011771号