0
(学习的Cocos2D)如何获取作为CCScene的子项的CCLabel的位置(x,y)?
创建CCLabel并将其添加到一个CCLayer这样后:
//From HelloWorldScene.m
// create and initialize a Label
CCLabel* label1 = [CCLabel labelWithString:@"Hello" fontName:@"Marker Felt" fontSize:10];
label1.position = ccp(35, 435);
// add the label as a child to this Layer
[self addChild: label1];
如何确定当用户触摸屏幕上的标签?