CCLabelTTF的设置

CCLabelTTF的设置

  (2011-12-07 15:30:16)
转载
标签: 

it

分类: cocos2d

// 右对齐

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

// 左对齐
label.anchorPoint = CGPointMake(0, 0.5f);

// 置顶放置
label.anchorPoint = CGPointMake(0.5f, 1);

// 放置在底部
label.anchorPoint = CGPointMake(0.5f, 0); 

//设置寛高

CGSize size = [[CCDirector sharedDirector] winSize]; 

label.position = CGPointMake(size.width, size.height); 

你可能感兴趣的:(CCLabelTTF的设置)