IOS和安卓开发.pptVIP

  • 1
  • 0
  • 约6.33千字
  • 约 86页
  • 2016-06-18 发布于河南
  • 举报
// position the label on the center of the screen label.position = ccp( size.width /2 , size.height/2 ); // label.position=ccp(100,100); // add the label as a child to this Layer [self addChild: label]; ///////////////////////////////////////////// CCLabelTTF *label2 = [CCLabelTTF labelWithString:@2 fontName:@Marker Felt fontSize:64]; label2.position=ccp(200,200); [self addChild: label2]; }r eturn self; } QA UIView的範例 使用UIView 是一個空白的畫板 sample code: TutorialUIView 並且加上這一段code 在程式裡: // Implement viewDidLoad to do additional setup after loading the view, typically from a nib. - (void)viewDidLoad

文档评论(0)

1亿VIP精品文档

相关文档