フォーマット文字列の % を省略したため、2 番目の NSString は必要ありません
stringscore = [NSString stringWithFormat:@"%d",score];
この場合、変数の定義と割り当てをすべて 1 行に入れることもできます。
NSString* stringscore = [NSString stringWithFormat:@"%d",score];
愚かさの更新
投稿するのに夢中になっている (そして半分眠っている) ため、これがすべて @Interface で行われていることがわかりませんでした。
インターフェイスと実装の間で分割する必要がある場合..以下は、それを行う方法の例です。
@interface GameViewController : UIViewController {
int score;
NSString *stringscore;
}
@end
@implementation GameViewController
-(void)SomeMethod
{
score = 123;
stringscore = [NSString stringWithFormat:@"%d",score];
}
@end