On 64-bit platforms, NSInteger
is a 64-bit quantity, but int
is only 32-bit.
I assume that you have declared
int HighScore;
so you can change that to
NSInteger HighScore;
or add an explicit cast
HighScore = (int)[prefs integerForKey:@"integerKey"];
to solve the problem.