Label* playerName = [Label labelWithString:@"TEST" fontName:@"Helvetica" fontSize:19];
[playerName setPosition: ccp(160,465)];
[self addChild:playerName];
I want to change the playerName once the user clicks a button.
I've tried
[playerName setString:@"newName"];
but it didn't work.......
How do I do this ?