メソッドを呼び出すタイマーがありますが、このメソッドには 1 つのパラメーターが必要です。
theTimer = [NSTimer scheduledTimerWithTimeInterval:animationInterval target:self selector:@selector(timer) userInfo:nil repeats:YES];
する必要があります
theTimer = [NSTimer scheduledTimerWithTimeInterval:animationInterval target:self selector:@selector(timer:game) userInfo:nil repeats:YES];
現在、この構文は正しくないようです。NSInvocation を試してみましたが、いくつか問題がありました。
timerInvocation = [NSInvocation invocationWithMethodSignature:
[self methodSignatureForSelector:@selector(timer:game)]];
theTimer = [NSTimer scheduledTimerWithTimeInterval:animationInterval
invocation:timerInvocation
repeats:YES];
呼び出しはどのように使用すればよいですか?