0
我有一個if語句這樣爲什麼我的整數增加4的倍數?
@property (nonatomic) NSUInteger *theScore;
if (hint.hidden) {
theScore += (2);
} else {
theScore += (1);
}
NSLog(@"Score changed");
score.text = [NSString stringWithFormat:@"%d", theScore];
但是,相反的犯滿離場由2或1增加它是由8個或4
任何想法增加?
哇,這是愚蠢的我,非常感謝 – user1282180 2012-07-07 19:18:52