Created
August 15, 2011 00:27
-
-
Save Alos/1145505 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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