开发者

Cocos2D - How to get a label's value

开发者 https://www.devze.com 2023-01-13 17:49 出处:网络
How can I get the value of La开发者_Python百科bel? I\'m able to set value using [label setString:[NSString stringWithFormat:@\"%d\", val]];

How can I get the value of La开发者_Python百科bel?

I'm able to set value using [label setString:[NSString stringWithFormat:@"%d", val]];

Trying to find the reverse of that, i.e grabbing the string value.

Thanks,

Tee


try [label label] or [label string].

0

精彩评论

暂无评论...
验证码 换一张
取 消