0
NSString *nssHighscore = [NSString stringWithFormat:@"Bounce the ball upwards by tilting or touching where you want it to go. Bounce on the green platforms in order to move up. If you miss a platform and fall, it's game over.%lu",highscore];

Xcodes 询问:'NSinteger'(又名'int')

我是否必须将这个'NSinteger'(又名'int')放在代码上。

4

1 回答 1

1

格式说明符%lu用于unsigned long整数。如果%d要指定int整数的格式,请使用。Apple 在其Developer Connection网站上提供了这些和其他格式说明符的表格。

于 2012-09-08T19:43:38.297 回答