Skip to content

Instantly share code, notes, and snippets.

@Alos
Created August 15, 2011 00:27
Show Gist options
  • Save Alos/1145505 to your computer and use it in GitHub Desktop.
Save Alos/1145505 to your computer and use it in GitHub Desktop.
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
NSLog(@"Touched page 1!");
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView: self];
CGRect previousButtonFrame = [previousButton frame];
NSLog(@" %f, %f", location.x, location.y);
if (CGRectContainsPoint(previousButtonFrame, location)){
NSLog(@"previous button clicked");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment