Skip to content

Instantly share code, notes, and snippets.

@jasonmcdermott
Created July 3, 2014 03:44
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/9f367e290579cf4b5509 to your computer and use it in GitHub Desktop.
Save jasonmcdermott/9f367e290579cf4b5509 to your computer and use it in GitHub Desktop.
- (IBAction)pressPlayPause:(UIButton *)sender {
if (playing) {
playing = NO;
[self.playPauseButton setTitle:@"Play" forState:UIControlStateNormal];
self.resetButton.hidden = NO;
} else {
[self.playPauseButton setTitle:@"Pause" forState:UIControlStateNormal];
playing = YES;
self.resetButton.hidden = YES;
[self resetGame];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment