私はこのようなif文を持っています
@property (nonatomic) NSUInteger *theScore;
if (hint.hidden) {
theScore += (2);
} else {
theScore += (1);
}
NSLog(@"Score changed");
score.text = [NSString stringWithFormat:@"%d", theScore];
しかし、theScore が 2 または 1 ずつ増加する代わりに、8 または 4 ずつ増加しています。
何か案は?