Skip to content

Instantly share code, notes, and snippets.

@jasonmcdermott
Created July 3, 2014 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonmcdermott/80df637ee4323b00bca4 to your computer and use it in GitHub Desktop.
Save jasonmcdermott/80df637ee4323b00bca4 to your computer and use it in GitHub Desktop.
- (IBAction)pressResetButton:(UIButton *)sender {
if (!playing) {
highScore = 0;
score = 0;
[[NSUserDefaults standardUserDefaults]
setObject:[NSNumber numberWithInt:highScore]
forKey:@"highScore"];
}
[self updateLabels];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment