Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
- (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
You can’t perform that action at this time.