Cocos2d iphone CCLabelTTF无法打印多个值
我想使用for循环打印多个值。但是缺少了一些东西Cocos2d iphone CCLabelTTF无法打印多个值,cocos2d-iphone,Cocos2d Iphone,我想使用for循环打印多个值。但是缺少了一些东西 提前感谢。语法错误。应该是: label1 = [CCLabelTTF labelWithString:[NSString stringWithFormat:@"%d", i] fontName:@"Times New Roman" fontSize:40]; 请发布代码而不是屏幕截图。是否可以使用NSString stringW
提前感谢。语法错误。应该是:
label1 = [CCLabelTTF labelWithString:[NSString stringWithFormat:@"%d", i]
fontName:@"Times New Roman"
fontSize:40];
请发布代码而不是屏幕截图。是否可以使用NSString stringWithFormat:?
cocos2d
是Objective-C。不能吗?如果没有导入Foundation.framework
,请执行该操作。默认情况下,它应该已经导入。听起来daxesh不知道@“.”与NSString*对象相同