Skip to content

Instantly share code, notes, and snippets.



Last active Aug 29, 2015
What would you like to do?
- (void)viewDidLoad
[super viewDidLoad];
// do any additional...
UITapGestureRecognizer *gestureRecogniser =
[[UITapGestureRecognizer alloc] initWithTarget:self
gestureRecogniser.numberOfTapsRequired = 1;
[self.view addGestureRecognizer:gestureRecogniser];
[self resetGame];
self.hitMeButton.hidden = YES;
self.loseLifeButton.hidden = YES;
self.addTimeButton.hidden = YES;
[self.playPauseButton setTitle:@"Play" forState:UIControlStateNormal];
[self.resetButton setTitle:@"Reset" forState:UIControlStateNormal];
playing = NO;
highScore = [[NSUserDefaults standardUserDefaults]
[NSTimer scheduledTimerWithTimeInterval:2.0 target:self selector:@selector(showButton) userInfo:nil repeats:YES];
[NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(countDown) userInfo:nil repeats:YES];
[self updateLabels];
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.